/* This script was originally done by lordemil for me.
What it is?
An invisible area transition.
What does it do?
It makes it so when a PC enters a generic trigger he is taken to a waypoint, I
use it for all my area transitions because it feels smooth and nicer to not have
to see a big ugly blue square, but rather some more fluid.
Directions
Make new generic trigger to where you want the area transition to be. */
//Put this script on the triggers Onenter
void main()
{
object oPC_Enter = GetEnteringObject();
object oTarget = GetWaypointByTag("WAYPOINTTAGNAME");
AssignCommand (oPC_Enter, ActionJumpToObject(oTarget));
}
/* Go to the area you want the generic trigger or your invisible area transition
to link to. In that area place a way point where you want them to end up.
Give that waypoint a custom tag and copy and paste that tag into your generic
triggers onenter script to replace the "WAYPOINTTAGNAME."
Now when you enter that trigger you area transition to where the waypoint is.
If you choose to use this method for all your area transitions like I do in an
example such as
At the end of road1 there is the invisible area transition that connects to
road2, and at the road2 there is again an invisible area transition leading back
to the original road1... make sure to put your way points a little OUTSIDE the
invisible area transition and not in it or else you will teleport back and
forth.
Its ultra easy to use despite my long explanation, and I think you will love the
results as much as I do! */