Jump to content

need help with a script


ptaccount Resident
 Share

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

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

Recommended Posts

Assuming you're wearing the device as a HUD (or some other attachment) I would suggest dropping a landmark for your home position into the object, and using llTeleportAgent.  You could use llTeleportAgentGlobalCoords without a landmark, but that's probably over-complicating matters. 

I don't think the apparently obvious choice, llTeleportAgentHome, would work here since it's intended for security orbs and the like, and needs to be owned by the landowner, land group, or a group member with appropriate land permissions.   Worth a try, of course.

  • Like 2
Link to comment
Share on other sites

If you call it in the timer event, yes.   I would also suggest stopping the timer in the timer event, too, otherwise it's going to keep teleporting you home every n seconds.

Since I imagine you are also going to be using the timer to see if you're AFK or not, you need to give some thought to how to keep it from teleporting you as soon as it detects you are AFK (if that's not what you want to happen) and also to how you call off the teleport if you stop being AFK while you're in danger of being teleported.   You might find some of the methods discussed here by Rolig Loon are helpful.

Edited by Innula Zenovka
Link to comment
Share on other sites

Just in case you were wondering, or were put off by the common impression that llTeleportAgent will only work when your script is in an Experience .... that's only almost true. Paraphrasing Magical Max, "Almost true is not true." llTeleportAgent will always work for teleporting the owner of the script, as long as you are on script-enabled land.  It's ideal for building personal transporter HUDs.

  • Like 2
Link to comment
Share on other sites

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...