Jump to content
  • 0
Kermudgeon Baar

Action after standing from a sit to teleport to a location

Question

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

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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.

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

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. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...