PoA_PRC8/_module/nss/exitoverspwnjail.nss

32 lines
737 B
Plaintext
Raw Normal View History

2022-10-07 14:20:31 -04:00
////////////////////////////////////
//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
}