I ran your original script myself and it worked for me, with of course one minor bug. If you move between clicking the portal and being teleported you cancel the teleportation action. The visual effect remains, however.
Solve that by disabling player commandability for the 3 second duration, for example.
Since the script was otherwise just fine, the problem must be one of the following:
- Your portal is not useable or not present
- Your portal's OnUsed script is not this script or missing completely
- Your waypoint tag is not pt_workarea or pt_workarea, or there is no waypoint. Note that using upper or lower case letters does make a difference.
In any event, the flaw is not in the code itself.
EDIT: Nevermind, you're done already [img]smile.gif[/img]
[ 08-25-2005, 03:26 PM: Message edited by: Legolas ]
|