User:Toy Wylie/RLV Documentation/rediremote
Jump to navigation
Jump to search
@rediremote
Type
Exception
Implemented
Implemented since RLV version 1.01
Usage
@emote=add
@emote=rem
Purpose
When adding this exception (@emote=add), the emotes are not truncated anymore (however, special signs will still discard the message).
See Also
Example
<lsl>integer listenHandle;
integer redirect = FALSE;
default {
touch_start(integer total_number)
{
if (llDetectedKey(0) != llGetOwner()) return;
redirect = 1-redirect;
if(redirect)
{
listenHandle = llListen(11223344, "", llGetOwner(), "");
llOwnerSay("@rediremote:11223344=add");
llSay(0, "Emotes redirected to channel 11223344.");
}
else
{
llListenRemove(listenHandle);
llOwnerSay("@rediremote:11223344=rem");
llSay(0, "Emotes back on public channel.");
}
}
listen(integer channel, string name, key id, string message)
{
llSay(0, name + llGetSubString(message, 3, -1));
}
}
</lsl>