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

How to calculate delays in zdoom scripting?

Recommended Posts

Hello
I have the following script:

script 1 (void){
Ceiling_RaiseByValue(1,40,20);
delay(x);
//the rest of this soon to be awesome script
}
How can i calculate the x, so the rest of the scripts executes precisely when the ceiling has stopped its movement? Last night i thought that maybe the speed was measured in units per tic, but it's always better to ask, i believe.

Thanks!

Share this post


Link to post

In fraggle script there's a command called tagwait(); which will wait for the sector's floors and ceilings to stop moving before it continues with the script. I'm sure there's something just like that for ACS.

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  
×