Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2018-11-18 12:25:19



Reply to topic  [ 82 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9
Lua scripting related requests 
Author Message

Joined: 2009-03-17 18:42:51
Posts: 3856
Reply with quote
ZaneZimer wrote:
GetAgentInfo() and control_flags:

I've been trying to determine if there is a way to distinguish between sitting on an object vs sitting on the ground. I know GetAgentInfo() provides the `sitting` Boolean, but it is for any type of sit. I thought perhaps the control_flags could indicate this distinction, since indra/llcommon/llagentconstants.h contains AGENT_CONTROL_SIT_ON_GROUND. I'm likely misinterpreting what that flag is used for and/or means, as I have only found it in use at line 5457 in indra/newview/llviewermenu.cpp. A little tracing makes it seem like that flag means that I think it does, but I didn't go too far. I have also tried the various ways to sit on the ground, including the AgentSit() method but the control_flags remain 0 while sitting. I have used AGENT_CONTROL_AWAY from control_flags successfully, however, so I know some of the flags are as I expect them. Cheers and thanks for reading.

Alas, most control flags are ephemeral (reset on agent update after they have been sent to the sim server) and AGENT_CONTROL_SIT_ON_GROUND is one such flag. I added a specific flag for next release, and the corresponding "sitting_on_ground" key/boolean pair in the table returned by GetAgentInfo().


2018-07-26 13:52:03
Profile WWW

Joined: 2016-06-19 21:33:37
Posts: 106
Location: San Francisco bay area, CA, USA
Reply with quote
Henri Beauchamp wrote:
[Alas, most control flags are ephemeral (reset on agent update after they have been sent to the sim server) and AGENT_CONTROL_SIT_ON_GROUND is one such flag. I added a specific flag for next release, and the corresponding "sitting_on_ground" key/boolean pair in the table returned by GetAgentInfo().
I wondered if it was something like that. I appreciate you adding the additional flag and boolean.


2018-07-26 16:06:53
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 82 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9

Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.