Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Wo0p

ACS Trouble - UDMF GZDoom

Recommended Posts

Hello everyone :)

 

I'm having some trouble with a couple of scripts. It either fires too soon or it gives me the dreaded "Runaway Script 77 Terminated" error message. It's supposed to wait for all the cacodemons to die before giving a hudmessage ("ExteriorFightDoneChat"). Cacodemons having the TID 670. What am I doing wrong?

 

script "Cacowave" (void)
{
    SpawnSpotFacing("SmoothCacodemon", 6, 666);
    Thing_Hate(666, 3, 2);
    Delay(225);
    SpawnSpotFacing("SmoothSoul", 6, 668);
    SpawnSpotFacingForced("TeleportFog", 6, 0);
    Delay(225);
    SpawnSpotFacing("SmoothSoul", 6, 669);
    SpawnSpotFacingForced("TeleportFog", 6, 0);
    Delay(225);
    SpawnSpotFacing("SmoothCacodemon", 6, 670);
    SpawnSpotFacingForced("TeleportFog", 6, 0);
    Delay(70);
    ACS_ExecuteWait(77, 0, 0, 0, 0);
    ACS_NamedExecute("ExteriorFightDoneChat", 0, 0, 0, 0);
}

 

script 77 (void)
{
    Until(ThingCountNameSector("SmoothCacodemon", 47, 670));
    {
        Delay(15);
    }
        Delay(1);
}

 

Thanks for reading!

Share this post


Link to post
13 minutes ago, Doomy__Doom said:

A quick trip to zdoom wiki suggests that as written 670 is a sector tag, and 47 is the TID.

 

Holy shit I'm an idiot... Must've gone crosseyed from coding. Thanks! x)

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
×