Initial Upload

Initial Upload
This commit is contained in:
Jaysyn904
2023-08-08 16:22:17 -04:00
parent 51a2a1286e
commit 22947ad4b6
6511 changed files with 6765205 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
void main()
{
/*
* Smart Teleport for GenericTrigger to Waypoint
* -------------------------
***************** By Zeke Xeno ********************
* This is attached to the OnEnter event of a GenericTrigger
* First, create a generic trigger and give it a tag like "Here2There_01"
* Second, create a destination Waypoint and name it AST_(+ the
* tag of your trigger, example "AST_Here2There_01"
*/
object oidUser;
object oidDest;
string sDest;
oidUser = GetEnteringObject();
string sTag = GetTag(OBJECT_SELF);
SetLocalString( (OBJECT_SELF), "Destination" , "AST_"+sTag );
sDest = GetLocalString(OBJECT_SELF,"Destination");
oidDest = GetObjectByTag(sDest);
AssignCommand(oidUser,ActionJumpToObject(oidDest,FALSE));
}