I have noticed something when using TeleportAgentToPos() in a Lua automation script. It seems that the z value cannot be all that 'large'. I have tried to use the function to teleport to skyboxes or platforms but always end up at ground level with the proper x and y coordinates. Is there a max z, i.e. altitude, for the function?
This seems to be a limitation in LLAgent::teleportViaLocationLookAt()... This limitation will not appear if you don't use the "preserve_look_at" flag (or set it to false), the LLAgent::teleportViaLocation() being used in that case and not being affected...
I'll have a look at what can be done in LLAgent::teleportViaLocationLookAt(), but there is no guarantee this limitation can be overcome (should it be a server-side limitation).
2017-05-24 13:31:41
ZaneZimer
Joined: 2016-06-19 21:33:37 Posts: 342 Location: Columbus area, OH, USA
Thanks for the info. I did a quick test and using 'false' isn't sufficient. It seems the parameter must be completely absent for the altitude to be used. I guess I shouldn't have suggested preserving the look_at on teleport.
I found the bug that explains both issues... When I added the "preserve_look_at" parameter, I forgot to change a test for the number of parameters when fetching/assigning the altitude parameter, meaning that when more than 3 parameters are passed, the altitude is always ignored (and thus set to 0)... This will be fixed in next release.
2017-05-24 14:39:50
ZaneZimer
Joined: 2016-06-19 21:33:37 Posts: 342 Location: Columbus area, OH, USA
Users browsing this forum: No registered users and 63 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum