Scripting a loop

Meet the people you love to kill (and be killed by) in Descent!

Moderator: Do_Checkor

Post Reply
ev1lp1nk1
DBB Cadet
DBB Cadet
Posts: 3
Joined: Tue Mar 02, 2010 4:33 pm

Scripting a loop

Post 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.
User avatar
Floyd
DBB Captain
DBB Captain
Posts: 561
Joined: Sat Apr 26, 2003 2:01 am
Location: Germany
Contact:

Post by Floyd »

please elaborate on what you want to do.
ev1lp1nk1
DBB Cadet
DBB Cadet
Posts: 3
Joined: Tue Mar 02, 2010 4:33 pm

Post by ev1lp1nk1 »

Just trying to shake the pilots in the level for now. Eventually I want to setup a randomly activated death chamber.
User avatar
Floyd
DBB Captain
DBB Captain
Posts: 561
Joined: Sat Apr 26, 2003 2:01 am
Location: Germany
Contact:

Post 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.
ev1lp1nk1
DBB Cadet
DBB Cadet
Posts: 3
Joined: Tue Mar 02, 2010 4:33 pm

Post 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.
Post Reply