Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
tempdecal.wad

Keeping an ACS script running after activator leaves the game?

Question

I noticed scripts that run from Linedefs don't remain, they are suspended as soon as the activator (player who crosses or uses the linedef) leaves the game, I want to keep them running even after the activator leaves the game, anyway to do this ? Thanks.

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 2

Here is a way to do it. It is possible that somebody else might come up with a better way, but this works.

bool TheLineIsTriggered = FALSE;

script 1 (void) //Have the line run this script.
{
  TheLineIsTriggered = TRUE;
}

script 2 OPEN
{
  Until (TheLineIsTriggered)
  {
    Delay(5); //Checks every 5 tics to see if the line has been triggered.
  }
  //The rest of the script goes here.
}

Share this post


Link to post
  • 0

Yeah that worked perfect, I think there's also a way to keep script running even if it's not OPEN type but i'll just go with that method, thanks.

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
×