Initial commit. Updated release archive.
This commit is contained in:
20
_module/nss/as_useladder.nss
Normal file
20
_module/nss/as_useladder.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
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));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user