Author Sticky: Post Working Scripts Here
Kraxis Posted: Friday, 19 July 08:19PM
I had been looking for a simple Portal teleport and couldn't find one.. so I made one.

Create Portal Placeable under Visual Effects in the Toolset.

Edit the properties of the Portal and click the box to make it USEABLE.

Go to the Scripts tab and put the Script below in the "OnUsed" event. Save it as any name you want.

You need to have a WayPoint created where you want the PC to be transported to. Be sure to enter that waypoint TAG in the script where it says "ENTER YOUR WAYOINT TAG HERE!"

Code:
void main()

{

    object oWP = GetWaypointByTag("ENTER_YOUR_WAYPOINT_TAG_HERE!");

    location lWP = GetLocation(oWP);

    object oPC = GetPCSpeaker();

    AssignCommand(oPC, ActionJumpToLocation(lWP));

}