17 lines
513 B
Plaintext
17 lines
513 B
Plaintext
void main()
|
|
{
|
|
|
|
object oPC = GetLastUsedBy();
|
|
object oTarget;
|
|
location lTarget;
|
|
if(GetTag(OBJECT_SELF) == "MELEEMAG_PORT_UP")
|
|
{ oTarget = GetWaypointByTag("WP_MELEEMAG_LVL3"); }
|
|
else if (GetTag(OBJECT_SELF) == "MELEEMAG_PORT_DOWN")
|
|
{ oTarget = GetWaypointByTag("WP_MELEEMAG_LVL1"); }
|
|
else if(GetTag(OBJECT_SELF) == "MELEEMAG_PORT_LVL1")
|
|
{ oTarget = GetWaypointByTag("WP_MELEEMAG_LVL2"); }
|
|
lTarget = GetLocation(oTarget);
|
|
AssignCommand(oPC, ClearAllActions());
|
|
AssignCommand(oPC, ActionJumpToLocation(lTarget));
|
|
}
|