Ancordia_PRC8/_module/nss/thugs_run.nss
Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

19 lines
616 B
Plaintext

#include "nw_i0_plot"
void main()
{
object oObject = GetFirstObjectInArea(GetArea(OBJECT_SELF));
SetLocalInt(GetArea(OBJECT_SELF), "TributePaid", TRUE);
while (GetIsObjectValid(oObject))
{
if (GetTag(oObject) == "anc_roadbandit")
{
SetLocalInt(oObject, "Running", TRUE);
DeleteLocalInt(GetArea(oObject), "Tribute");
AssignCommand(oObject, ClearAllActions(TRUE));
AssignCommand(oObject, EscapeArea());
DelayCommand(25.0, DestroyObject(oObject));
}
oObject = GetNextObjectInArea(GetArea(OBJECT_SELF));
}
}