21 lines
411 B
Plaintext
21 lines
411 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oUser = GetLastUsedBy();
|
||
|
object oTop = GetObjectByTag("LadderTop");
|
||
|
object oBottom = GetObjectByTag("LadderBottom");
|
||
|
object oWPTop = GetWaypointByTag("WP_LadderTop");
|
||
|
object oWPBottom = GetWaypointByTag("WP_LadderBottom");
|
||
|
|
||
|
if (OBJECT_SELF == oTop)
|
||
|
{
|
||
|
AssignCommand(oUser,ActionJumpToObject(oWPBottom));
|
||
|
}
|
||
|
|
||
|
else
|
||
|
{
|
||
|
AssignCommand(oUser,ActionJumpToObject(oWPTop));
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|