Jump to content

Timing scripted events?


Recommended Posts

Hey, I'm unsure if this is even possible, but I was wondering if there is any way to time a scripted event? Here's an example:

Let's say I press a button that activates a script to open a door. Is there a way to have that door open a certain amount of time after the button has been pressed?

Same goes for any other types of scripts. (Playing sounds, spawning monsters, etcetera.)

Any answers are greatly appreciated! Have a great day/night!

Share this post


Link to post

If you're using Zdoom script you can use "Delay()"

 

For example...

 

script 1 (void)
{

   Delay(25);
   Floor_RaiseToLowestCeiling (5,64);
}  

 

The timing is in game tics.

Edited by KeenKyle

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...