Remotely Control Avsitter Furniture!
When you have an altbot - you'll want to sit it on furniture for... um whateer reason. Then, some of you will want your altbot to take the initiative - and maybe control the furniture! Practic ally, this means you will need to send private channel messages to the furniture. The little script below, if you can stick it inside a piece of furniture, can control it by relaying messages to the script inside. The best furniture to control is avsitter-type furniture which does not pop up permission request windows.
What this script does is listen on a channel (default is -998998 but feel free to change it, for example to control different pieces of furniture) and then send on whatever is in the message as a linked message, with numeric code 90000. For most avsitter-based furniture, you can just put the name of the animation (usually the name displayed on the button) or other command into the message.
There is a bit of security in the sense thta there is a list ALLOWED of uuids that are allowed to change poses. Make sure you add avatars uuids to this list if you want them or their objects to control poses (my uuid is on the list).
For my bots and the Submissive Controller, you can use the RLV controller command "channelsay", using a command like
ctrl channelsay -998998 button-name-of-animation
and to stop animations something like
ctrl channelsay -998998 stop-button-name
I've set this up for a few pieces of furniture - for example stuff from Nihil has worked well.
Near the bottom of the script is a block of code that allows you to display codes as you use the furniture. This can be useful if the furniture creator has changed the numeric codes that are being used, or to figure out how the messages should look. Just uncomment it and it will show you every internal message being sent - lots of spam but possibly helpful!
Little update July 24, added feedback on CHAN2, could tell an AI system what pose has been selected. Could make fancier by providing sitter info as well in case one was around a lot of furniture - whisper range is 10 m.
Comments
Post a Comment