MP

APIs

Chat API (From v2.8.4)

When something is put on or taken off successfully, the following messages are chatted on channel -2301:

put-on|{folder-path}
take-off|{folder-path}

where {folder-path} is the path to the folder relative to the #RLV folder.

Link Message API (Requires Rulebook v1.9 or later)

You can send a link message to the Rulebook script to trigger putting on an outfit:

llMessageLinked(LINK_THIS, 6001, "{your-outfit-name}", NULL_KEY);

Example:

Listen for a outfit name on channel 999 by anyone, and put on that outfit:


default
{
    state_entry()
    {
        llListen(999, "", NULL_KEY, "");
    }
    
    listen(integer nChannel, string strName, key keyUUID, string strMessage)
    {
         llMessageLinked(LINK_THIS, 6001, strMessage, NULL_KEY);
    }
}