PoA_PRC8/_module/nss/exitoverspwnjail.nss
Jaysyn904 8d97886c3f Changed folder name.
Changed folder name.
2022-10-07 21:08:37 -04:00

32 lines
737 B
Plaintext

////////////////////////////////////
//Created by Genisys / Guile 7/1/08
////////////////////////////////////
/*
This script goes on Used event of a placeable..
It basically teleports the PC to their stored
location, or home if they don't have one
I created this for the exit portal for
the overspawning jail area..
*/
////////////////////////////////////
void main()
{
//Declare Major Variables..
object oPC = GetLastUsedBy();
object oPP = oPC;
object oTag = GetObjectByTag("jail1");
location lTag = GetLocation(oTag);
//Send the player to the jail exit...
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, JumpToLocation(lTag));
//Auto Destruct!
DelayCommand(20.0, DestroyObject(OBJECT_SELF, 0.0f));
//Script end
}