Jaysyn904 ec287507a1 Initial upload
Initial upload.
2023-09-25 21:32:17 -04:00

26 lines
781 B
Plaintext

void main()
{
object oPC = GetFirstPC();
int iDebugPoint = GetLocalInt(GetModule(), "DEBUG_JUMP_POINT");
object oDebugWaypoint = GetObjectByTag("DEBUG_JUMP", iDebugPoint);
if(GetIsObjectValid(oDebugWaypoint))
{
while(GetIsPC(oPC)){
AssignCommand(oPC, JumpToObject(oDebugWaypoint));
oPC = GetNextPC();
}
} else {
while(GetIsPC(oPC)){
iDebugPoint = 0;
oDebugWaypoint = GetObjectByTag("DEBUG_JUMP", iDebugPoint);
if(GetIsObjectValid(oDebugWaypoint))
{
AssignCommand(oPC, JumpToObject(oDebugWaypoint));
}
oPC = GetNextPC();
}
}
iDebugPoint ++;
SetLocalInt(GetModule(), "DEBUG_JUMP_POINT", iDebugPoint);
}