Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
cyber-menace

A Waiting Script

Recommended Posts

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?

Share this post


Link to post

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!!!

Share this post


Link to post

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
}

Share this post


Link to post

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).

Share this post


Link to post

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.

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
Sign in to follow this  
×