ptaccount Resident Posted April 9, 2017 Share Posted April 9, 2017 i'm trying to write a script that will teleport me to my home if i'm AKF for more than 3 minutes. i have the AFK timer part, but i'm having trouble w/ the command to teleport myself. can anyone help? Link to comment Share on other sites More sharing options...
Innula Zenovka Posted April 9, 2017 Share Posted April 9, 2017 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. 2 Link to comment Share on other sites More sharing options...
ptaccount Resident Posted April 9, 2017 Author Share Posted April 9, 2017 will this automatically teleport me when the AFK timer expires? Link to comment Share on other sites More sharing options...
Innula Zenovka Posted April 9, 2017 Share Posted April 9, 2017 (edited) 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 April 9, 2017 by Innula Zenovka Link to comment Share on other sites More sharing options...
Rolig Loon Posted April 9, 2017 Share Posted April 9, 2017 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. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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