cyber-menace Posted June 20, 2003 I have a question. What would I have to type in order for one part of my script to wait until the previous action stops before it starts Example: Action 1 Next Action Delay Action 2 (Begins when Action 1 is finished) How would I do this? 0 Share this post Link to post
Fredrik Posted June 20, 2003 <do action 1> delay(35 * <time in seconds>); <do action 2> Is one way. 0 Share this post Link to post
Epyo Posted June 20, 2003 delay(how many tics); There are 35 tics in a second. So delay(35); would be one second. Delay(70); would be 2 seconds, and so on. I have been DEFEATORD!!! 0 Share this post Link to post
boris Posted June 20, 2003 If your actions affect sectors, you could use tagwait. tagwait takes one argument: the tag of the sector; so if you want to wait until sector with tag 1 in inactive, you'd use tagwait(1);. Or you could split your actions into severl scripts and use scriptwait. I never used it myself, but something like this should work: script 1 (void) { ACS_Execute(2, 0, 0, 0, 0); // call script 2 scriptwait(2); // wait until script 2 is finished // do some other fancy stuff here } script 2 (void) { // do some fancy stuff here } 0 Share this post Link to post
Ichor Posted June 20, 2003 I could never get scriptwait to work right for some reason. I always use tagwait and polywait (wait for a certain polyobject to stop moving). 0 Share this post Link to post
boris Posted June 20, 2003 I just made a little example wad. It uses both tagwait and scriptwait: d00m.info/scriptwait.wad]download here. 0 Share this post Link to post
cyber-menace Posted June 20, 2003 Well with all this info that I'm recieving I'm finally almost done my map! I'm on the last area! Now I just need to add a few more sectors and one more script and vola I'm done. I should finish it sometime today. 0 Share this post Link to post