Cool VL Viewer forum http://sldev.free.fr/forum/ |
|
Lua scripting related requests http://sldev.free.fr/forum/viewtopic.php?f=9&t=1737 |
Page 8 of 10 |
Author: | ZaneZimer [ 2017-06-11 13:14:42 ] |
Post subject: | Re: Lua scripting related requests |
I was mostly curious. I could/can deal with the form as it is. It was just a combination I hadn't expected. |
Author: | Henri Beauchamp [ 2017-06-11 13:59:16 ] | |||||||||
Post subject: | Re: Lua scripting related requests | |||||||||
Just a matter of convention... I had to adopt one, which is indeed totally arbitrary. ![]() |
Author: | ZaneZimer [ 2017-07-23 18:17:19 ] |
Post subject: | Re: Lua scripting related requests |
I have found that the chat type returned in OnReceivedChat() can contain CHAT_TYPE_DIRECT = 9. This seems to come from prims/objects with llInstantMessage() used within them. The id then seems to be the owner of the prim/object and name is the name of the prim/object. The documentation listed at: Lua scripting and viewer automation feature seems to indicate otherwise. I found that chats using llInstantMessage() weren't being processed by my Lua script because I wasn't handling type '9'. |
Author: | Henri Beauchamp [ 2017-07-23 21:55:28 ] | ||||||||||||||||||
Post subject: | Re: Lua scripting related requests | ||||||||||||||||||
Well, like I wrote in the documentation:
So, to get the full list (beside the main examples I gave), you'll have to look into that source file... The same thing goes for all the functions where I give a source file pointer in the Lua doc... |
Author: | ZaneZimer [ 2017-07-23 22:18:34 ] | |||||||||
Post subject: | Re: Lua scripting related requests | |||||||||
I do use the header files and I even copy the names and values to comments in my automation script for quick reference. I am only referencing
![]() |
Author: | Henri Beauchamp [ 2017-07-29 08:05:15 ] | ||||||||||||||||||
Post subject: | Re: Lua scripting related requests | ||||||||||||||||||
Documentation updated/fixed. |
Author: | ZaneZimer [ 2017-07-31 04:24:26 ] | |||||||||
Post subject: | Re: Lua scripting related requests | |||||||||
I was looking at the Lua Pie Menu functions that you have made available. I have read the documentation and I don't believe it is possible to do 'nested' menu items (like the native browser pie support), correct? |
Author: | Henri Beauchamp [ 2017-07-31 07:52:39 ] | |||||||||
Post subject: | Re: Lua scripting related requests | |||||||||
|
Author: | ZaneZimer [ 2017-07-31 13:03:55 ] | |||||||||
Post subject: | Re: Lua scripting related requests | |||||||||
|
Author: | ZaneZimer [ 2018-07-08 18:27:19 ] |
Post subject: | Re: Lua scripting related requests |
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. |
Page 8 of 10 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |