Initial upload
Initial upload.
This commit is contained in:
18
_module/nss/debugjump.nss
Normal file
18
_module/nss/debugjump.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
int iDebugPoint = 0;
|
||||
void main()
|
||||
{
|
||||
object oPC = GetFirstPC();
|
||||
iDebugPoint ++;
|
||||
object oDebugWaypoint = GetWaypointByTag("DEBUG_" + IntToString(iDebugPoint));
|
||||
if(GetIsObjectValid(oDebugWaypoint))
|
||||
{
|
||||
AssignCommand(oPC, JumpToObject(oDebugWaypoint));
|
||||
} else {
|
||||
iDebugPoint = 1;
|
||||
oDebugWaypoint = GetWaypointByTag("DEBUG_" + IntToString(iDebugPoint));
|
||||
if(GetIsObjectValid(oDebugWaypoint))
|
||||
{
|
||||
AssignCommand(oPC, JumpToObject(oDebugWaypoint));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user