June 16th, 2003, 08:01 PM
Ok let's say I got a linedef in my level, and the player is gonne be crossing over this linedef alot while he plays my level. How do I make it so, once he presses a switch the linedef turns into a exit(52) line? Does legacy support this via scipting? How do I do this? Is it even possible?
June 17th, 2003, 04:53 AM
This can be done, via Fraggle Script.
Basically, you have a global variable, and whenever they cross the line, you check the variable, if it's the right value, it exits the level, if not it does nothing. The variable is changed when you press the switch, so when you next walk over the line, it will exit the level.
Thats a pretty simple, and basic outline. Theres a tutorial on the legacy site, on fraggle script, so I'd learn there.
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.