Kermudgeon Baar Posted June 21, 2018 Share Posted June 21, 2018 I have a script that sits a user a distance away. When the avatar stand, I would like the Avatar to return to a specific location, but can't find the standing event to trigger the action. Is there a status or function I can use to do that? Here is the flow Sit on object move avi to X,Y,X + 20,20,20 Stand move avi to X,Y,Z Link to comment Share on other sites More sharing options...
0 Rolig Loon Posted June 21, 2018 Share Posted June 21, 2018 You cannot move avatars except by teleporting, but you can move things that they are sitting on or that are attached to them. So, once your user stands, you've removed that option, leaving the other two. There is no standing event. If you are scripting within an Experience, you can teleport the person when you detect that AGENT_ON_OBJECT is no longer true. Otherwise, anything you do is going to be rather awkward and unsatisfying. 1 Link to comment Share on other sites More sharing options...
0 Nalates Urriah Posted June 21, 2018 Share Posted June 21, 2018 To accomplish what I think you want, one would likely need to run an Experience. You could then attach a HUD or scripted object. It could do the detection and teleport or move the avatar. You can poll avatar status to know what the avatar is doing using llGetAgentInfo. Stand is the default condition of the avatar. So, there is no event for it. Change events are limited to just a few. Link to comment Share on other sites More sharing options...
Question
Kermudgeon Baar
I have a script that sits a user a distance away. When the avatar stand, I would like the Avatar to return to a specific location, but can't find the standing event to trigger the action.
Is there a status or function I can use to do that?
Here is the flow
Link to comment
Share on other sites
2 answers to this question
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