Posted by Element_Greven on December 09, 1998 at 11:54:32:
In Reply to: Help with Keyframe cog PLEASE posted by Earl on December 09, 1998 at 09:19:12:
: # Jedi Knight Cog Script
: #
: # Speeder_m1.cog
: #
: # Plays Key Frame of Snowspeeder flying towards an Atat , flying around it, and heading back into the distance
: # Thing is destroyed after 8 seconds.
: #
: # Plays those keys and lines of dialogue.
: #
: # [KS]
: #
: # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
: # ========================================================================================
: symbols
: message entered
: message timer
: sector startsector
: int done=0 local
: keyframe speederanim=Speeder1.key
: sound speedersound
: thing speeder
: end
: # ========================================================================================
: code
: entered:
/below is the additon
if (done==0) return;
./above here is the addition/
: done=1;
:
: SetTimer(8.0);
: playkey(speeder, speederanim, 1, 2);
: playsoundlocal(speedersound, 1, 0, 0);
: Return;
: timer:
: DestroyThing(speeder);
: Return;
: end
either that or the animation isnt quite right. i dont have the original cog on me right now an I probably wont be able to look at the original till later.