Stick something like this to a portal's OnUsed script (untested, but should work in theory):
int nWaypoint = Random(11);
object oWaypoint = GetWaypointByTag("DST_teleporter"+IntToString(nWaypoint));
AssignCommand(GetLastUsedBy(),JumpToLocation(GetLo cation(oWaypoint)));
Then place down waypoints with tags DST_teleporter0 to DST_teleporter10.
That gives you 11 destination waypoints, and as many portals as you like moving you between the waypoints at random. If you want more or fewer waypoints, there's no limit to the number, just change the 11 in the Random(11);.
You could have one portal jump you to another, but unless you then build in a delay or limit players can just portalhop until they get to the one of their choice, so you're better off keeping waypoints and portals a distance apart.
|