normally when i wrote a cog i was able to fix any errors. but i don't know why this cog doesn't work.
it does work if i remove the damaged message and the "return;" below the startup-section.
i hope someone can help me.
thanks
------------------
-eriamjh-
it does work if i remove the damaged message and the "return;" below the startup-section.
i hope someone can help me.
Code:
# Jedi Knight Cog Script
#
# podpuzzle.COG
#
# Written by JB
#
# moves the pod in the first hangar forward to frame 1 when the switch is hit.
#
#
# This Cog is Not supported by LucasArts Entertainment Co
symbols
thing pod nolink
surface switch
int done local
message startup
message damaged
sound start=funicularstart01.wav local
sound ende=funicularstop01.wav local
end
# ========================================================================================
code
startup:
done=0;
return;
# ........................................................................................
damaged:
if ( done==0 )
{
done=1;
PlaySoundThing(start,pod,1,0,50,0x40);
MoveToFrame(pod, 1,2);
WaitForStop(pod);
PlaySoundThing(ende,pod,1,0,50,0x40);
}
return;
# ........................................................................................
endthanks
------------------
-eriamjh-
-eriamjh-