Changed folder name.
Changed folder name.
This commit is contained in:
21
_module/nss/tentdoorportspc.nss
Normal file
21
_module/nss/tentdoorportspc.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
//Put this script OnClick or OnFailToOpen
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetClickingObject();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
object oTarget;
|
||||
location lTarget;
|
||||
|
||||
//This is for the tent door, which will send the PC back to where they used the tent.
|
||||
lTarget = GetLocalLocation(oPC, "ls_stored_loc");
|
||||
|
||||
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
|
||||
|
||||
AssignCommand(oPC, ClearAllActions());
|
||||
|
||||
AssignCommand(oPC, ActionJumpToLocation(lTarget));
|
||||
|
||||
}
|
Reference in New Issue
Block a user