But I have questions... questions that must be answered, in fact, if you are viewing this, you have to answer, even if you don't know the answer. o.o
And what I mean by that is...
Will someone please explain the concept of listeners "piling up" when they are not removed? If I have an object that has llListen(blahblah) in its "state_entry()", and I do not have an llListenRemove() anywhere in the code, and the code does not ever change states, will the object have the problem of the listeners "piling up" every time it is rezzed? What if the object is an attachment? I am trying to learn everything there is to know about listeners and removing them.
Also...
If I have an attachment... say... a pair of wings. A single object, with 7 prims, 3 prims for each wing, and another prim for the center point. Say I want a hud button to change the color of these wings... should I put a listener in each of the 6 prims that make up the wings, or should I put a single listener say... in the 7th prim, the center piece, and use LinkedMessages to communicate the information to the other 6 prims?
ALSO...
What's the deal with llGetOwner having problems when the object with the script with llGetOwner in it is given to a new owner?
This code was taken from the wiki...
default
{
state_entry()
{
llListen(0, "", llGetOwner(), ""
; // listen to my owner}
listen(integer channel, string name, key id, string message)
{
llSay(0, name + " said: " + message); // repeat owner's text
}
on_rez(integer start_param)
{
// every time we're rezzed, reset the script
// this ensures that if we're transferred to a new owner, we're listening to them and not still to the previous one
llResetScript();
}
I did not see what the llResetScript is needed, would the script not execute the line "llListen(0, "", llGetOwner(), ""
;" every time it is rezzed anyways? I would give the object to the new person... and they would rez it in, or attach it... and the first thing it would do is llListen to llGetOwner, which would return the current owner...In fact, I have an object that I have done this with, and it seems to have no problems...
I think that is all.
?