Wo0p Posted February 8 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! 0 Share this post Link to post
Doomy__Doom Posted February 8 15 minutes ago, Wo0p said: Cacodemons having the TID 670. ... Until(ThingCountNameSector("SmoothCacodemon", 47, 670)); A quick trip to zdoom wiki suggests that as written 670 is a sector tag, and 47 is the TID. 1 Share this post Link to post
Wo0p Posted February 8 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) 0 Share this post Link to post