Jump to content
  • 0

LSL function to detect standing and sitting


atyid
 Share

Question

Hi! I want to make a toucher with different animations, depending if your avatar is sitting or standing.

Everything I search leads to scripting sits for furniture. Where should I be looking?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
48 minutes ago, atyid said:

Hi! I want to make a toucher with different animations, depending if your avatar is sitting or standing.

Everything I search leads to scripting sits for furniture. Where should I be looking?

Obviously you'll need to use llStartAnimation (and other related commands for requesting/checking permissions, etc.) but in addition you should also take a look at llGetAgentInfo and specifically AGENT_ON_OBJECT which you can use to detect whether or not an avatar is seated or standing.

  • Like 1
Link to comment
Share on other sites

  • 0
17 hours ago, Fluffy Sharkfin said:

Obviously you'll need to use llStartAnimation (and other related commands for requesting/checking permissions, etc.) but in addition you should also take a look at llGetAgentInfo and specifically AGENT_ON_OBJECT which you can use to detect whether or not an avatar is seated or standing.

AGENT_SITTING would be better as it also includes if the target is sitting on the ground.

  • Like 2
Link to comment
Share on other sites

  • 0
Posted (edited)

just for sake of completion, llGetObjectDetails(id,[OBJECT_ROOT]); can be used to determine if an avatar is sitting on something as well. (but doesn't detect ground sits obviously)

Edited by Quistess Alpha
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...