Jump to content

Teleporting to <0,0,0> by intermittently.


Guest
 Share

You are about to reply to a thread that has been inactive for 4505 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Most of the time my teleporter works great, I sit on the object and away I go to my huds requested destination.  However, sometimes I wind up at <0,0,0> usually in sea water.  Would it be prudent to have the telporter check the region coordinates and if for some strange reason you are at <0,0,0> to replay the requested teleport vector again, before ejecting you from the prim?  Moreover, is this idea feasible in the production environment as opposed to only a theoretical possibility?

Link to comment
Share on other sites

Precheck destination coordinates before doing TP (I presume by llSetRegionCoordinates() but doesn't really matter how) and if your destination is not a vector or is less than or equals 0 or greater than 255 along X or Y axes just send user a message "invalid destination".

Link to comment
Share on other sites

If you use llSetRegionPos it is simple since this function returns TRUE if it worked and FALSE if not.

Since <0,0,0> is a valid position you need to check if the target coordinates are ZERO_VECTOR. But that can't happen or there is a bug in your script - most probably it starts teleport and there is no target coordinate set - that will result in you getting dumped at <0,0,0>

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4505 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...