diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2024-05-22 20:29:55 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2024-05-22 20:29:55 +0300 |
commit | 0f00dc2f658869cc73a18b03b024a6cc88964e0b (patch) | |
tree | 8e8142f9cb61d8a543f164eb18aec9ed1e91c7c5 /indra/newview/scripts | |
parent | 58cf9c5c23c10752b26dcac384b51c85f9407ca6 (diff) |
Add support for sending messages to Nearby chat from Lua script
Diffstat (limited to 'indra/newview/scripts')
-rw-r--r-- | indra/newview/scripts/lua/LLChat.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/newview/scripts/lua/LLChat.lua b/indra/newview/scripts/lua/LLChat.lua new file mode 100644 index 0000000000..7db538e837 --- /dev/null +++ b/indra/newview/scripts/lua/LLChat.lua @@ -0,0 +1,17 @@ +leap = require 'leap' + +local LLChat = {} + +function LLChat.sendNearby(msg) + leap.send('LLChatBar', {op='sendChat', message=msg}) +end + +function LLChat.sendWhisper(msg) + leap.send('LLChatBar', {op='sendChat', type='whisper', message=msg}) +end + +function LLChat.sendShout(msg) + leap.send('LLChatBar', {op='sendChat', type='shout', message=msg}) +end + +return LLChat |