Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

30 lines
973 B
Plaintext

void main()
{
/*
* Smart Teleport for Placeable On-Used to Waypoint
* -------------------------
***************** By Zeke Xeno ********************
* Based partly on the Secret Door scripts by BioWare
*
* Usage
* -----
* This is attached to the OnUsed event of a Placeable Object (ladders...)
* First, create a Placeable Object and give it a tag like "LadderUp_01"
* Second, create a destination Waypoint and name it DST_(+ the
* tag of your trigger, example "DST_LadderUp_01"
*/
// what is the tag of this object used in setting the destination
object oidUser;
object oidDest;
string sDest;
oidUser = GetLastUsedBy();
string sTag = GetTag(OBJECT_SELF);
SetLocalString( (OBJECT_SELF), "Destination" , "WP_Catasew2" );
sDest = GetLocalString(OBJECT_SELF,"Destination");
oidDest = GetObjectByTag(sDest);
AssignCommand(oidUser,ActionJumpToObject(oidDest,FALSE));
}