Hey guys, I have an issue with the changed() event and I was wondering if anyone would have some insite to this. I'm doing a little RLV work and in my default state it listens for the RLV commands, one it recieves and verifys the commands it changes to the RLV state I have set up, checks to see if the user is sitting on something or not and sets all of it's variables. Now I have the changed() even in my RLV state set to monitor for a link change, if the link changes it does a litlte house keeping and switches back to the default state. Problem is, the changed() even isn't triggering at all, literally. I put a little debug code (just an ownersay) inside the change() even before any type of logic checks. It won't even trigger, no matter what changes. Has anyone else had this issue? If you have, what am I doing wrong? Below is a small code snippet. state rlv_command {
changed(integer what_changed) {
llOwnerSay("Pre if statemnt");
if(what_changed & CHANGED_LINK) {
llOwnerSay("Change State");
if(sit == TRUE) {
llSay(0, "no longer sitting");
sit = FALSE;
state default;
}
}
}
state_entry() {
if(llGetAgentInfo(llGetOwner()) & AGENT_SITTING) {
//llOwnerSay("Avatar is sitting");
sit = TRUE;
}
//llOwnerSay("rlv command state entered");
llSetTimerEvent(10.0);
}
timer() {
llSay(0, "Time Reached");
llSetTimerEvent(0.0);
exploded_rlv_message = [];
state default;
}
}Aside from Hello World, that's pretty basic, as I said that changed() even won't trigger at all. I call this state from a listen() even in the default state. Thanks for any input!