Hello all,
I have the following script:
default
{
on_rez(integer start_param)
{
llSay(-99,"Exists");
llListen(-99, "", llGetOwner(), "");
}
listen(integer chan, string name, key id, string message)
{
if(message=="Exists" && llGetOwnerKey(id)==llGetOwner())
{
llDie();
}
}
}
The problem with this is that when I rez a second object (containing of course this script), the first (already rezzed) object doesn't listen. However, if I type in chat "/-99 Exists" , it does listen and removes the object.
I tried to include a state entry for setting the channel but didn't work too.
Am I missing something?