Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
NightFallKiller

Looping Scripts?

Recommended Posts

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

Share this post


Link to post

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?

Share this post


Link to post

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.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×