NightFallKiller Posted December 2, 2009 Hello, everyone of Doomworld, and thank you for taking the time to look my post, I'm wanting to know if it is possible to make a script loop? Because I have something that I want to go up, then after a delay it will go back down, but i need it to always do it, so is it possible to make a script loop? If so how? Or is there an easier way get what I want to happen? Thank you for any answers 0 Share this post Link to post
Kyka Posted December 2, 2009 Usually it is a good idea to post the script itself, then it is much easier for people to see exactly what you are trying to do. You can loop scripts with a "restart;" command at the end of the script. Script 1 OPEN { Floor_RaiseByValue(tag, speed, height); delay(tics); Floor_LowerByValue(tag, speed, height); delay(tics); restart; } This will make a floor go up and down forever until the script is terminated. The delay must be greater than the time taken for the floor to go up/down tho. Is this sort of what you were asking? 0 Share this post Link to post
GreyGhost Posted December 2, 2009 If you don't need precise control over the delay a perpetual lift can also be implemented using Boom generalised actions, the only drawback being the need to activate it - though that could be done using a voodoo doll. 0 Share this post Link to post