Doom Marine
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Looping Scripts?
 
Author
All times are GMT. The time now is 14:09. Post New Thread    Post A Reply
NightFallKiller
Warming Up


Posts: 15
Registered: 11-09


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

Old Post 12-02-09 06:02 #
NightFallKiller is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Kyka
Loser


Posts: 1846
Registered: 06-08


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.

code:
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?

Old Post 12-02-09 11:11 #
Kyka is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
GreyGhost
a ghost... only grey


Posts: 5188
Registered: 01-08


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.

Old Post 12-02-09 11:46 #
GreyGhost is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 14:09. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Looping Scripts?

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory