Page 1 of 1

Scripting a loop

Posted: Tue Mar 02, 2010 4:38 pm
by ev1lp1nk1
Hi, I've been cruising the forums for some time and I've been trying to find a way to purposely set a looped script for a level. I somewhat understand how to generate scripts but I'm stuck on this one. Any help would be appreciated.

Posted: Tue Mar 02, 2010 4:49 pm
by Floyd
please elaborate on what you want to do.

Posted: Tue Mar 02, 2010 4:53 pm
by ev1lp1nk1
Just trying to shake the pilots in the level for now. Eventually I want to setup a randomly activated death chamber.

Posted: Tue Mar 02, 2010 5:14 pm
by Floyd
from what i recall the scripting is event based. so you have to setup a timer, wait for the event the timer reaches zero, shake the ship, reset the timer and repeat.

Posted: Tue Mar 02, 2010 6:25 pm
by ev1lp1nk1
I think I got it. The first script shakes on the level start and begins a timer. The second shakes when the timer goes off and sets another timer, and continues the loop. Cool. Thanks.