Jump to content

Execute existing chat command within an LSL script?


ShutYourYapper
 Share

You are about to reply to a thread that has been inactive for 458 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hi,

Just wondering if it is possible to execute an existing chat command, like "/55 play,15,l" from one of my objects within an LSL Script. Whenever I use LlSay, LlInstantMessage, or LlOwnerSay it just dumps the string into chat and the listener for that specific command is not triggered.

Example (llOwnerSay does not function how I wish it too.) :

string command = "/55 play,15,l";

default
{
    state_entry()
    {
        // Execute the chat command when the script starts
        llOwnerSay(command);
    }
}

Thanks!

  • Like 1
Link to comment
Share on other sites

The /55 in the chat command is the chat channel being used, which is a separate parameter with scripted says, whispers and shouts.

For your example, the equivalent would be llSay(55, "play,15,l");

Of course this would require the listening object to allow it -- if the object is designed to listen only to its owner's commands, it will not listen to a random object (or another person) even if you're the owner. Unless the script is modifiable, there's no way to tell without testing or to change which sources for commands are allowed.

  • Like 3
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 458 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...