Hello again dear forums!
I have been working on a "comm" system for our sci-fi base, but have been unable to figur out a way to capture a normal chat message and then send it via "channel 159".
I have gotten alot of help while learning code, but i'm have a hard time understanding certain part of it. Would anyone be willing/able to explain what the 4 values in "llListen" and "listen" do?
I know that llListen is (Channel, the object name that it needs to listen too, something, something,)
and have no clue how the () works on the "listen" function.
Here is the code:
default {
state_entry()
{
llWhisper(0, "O1 running!");
llListen(0,llDetectedKey(0),llDetectedKey(0),"");
}
listen(integer channel, string name, key id, string message)
{
llWhisper(159, message);
}
}
Thanks alot again and hope you are all doing good! ^^
~Perg0