Domitan Redenblack Posted January 16, 2012 Share Posted January 16, 2012 Is there a reliable way (yet) of detecting whether a user has Editted an object?For example: Using the Viewer object Edit to remove an item from contents? ty Link to comment Share on other sites More sharing options...
Darkie Minotaur Posted January 16, 2012 Share Posted January 16, 2012 The only way I can tthink of is to store the values you want to track and in certain intervals check them against the current values. This is not really an edit check but rather a change check. Link to comment Share on other sites More sharing options...
Qie Niangao Posted January 16, 2012 Share Posted January 16, 2012 In this specific case, I think the script could get a CHANGED_INVENTORY event, so it wouldn't have to sample at intervals. (There's a messy complexity even for this simple case, where a CHANGED_INVENTORY event would fire for the insertion of a script, which script would then remove the target contents without generating a changed() event.) Anyway, the script couldn't tell who, specifically, made the change -- although in practice that may not matter because, except for shared-with-group items, only the object owner is permitted to make such changes (and anybody else the owner has authorized to change their stuff). Link to comment Share on other sites More sharing options...
Domitan Redenblack Posted January 16, 2012 Author Share Posted January 16, 2012 I have a "change" event handler, and look for CHANGED_INVENTORY, but it does not trigger when I delete an item from the Contents of the object, nor does it trigger when I stop editting. Link to comment Share on other sites More sharing options...
Ela Talaj Posted January 16, 2012 Share Posted January 16, 2012 changed event indeed would not trigger when a user starts or stops object editing but it will always trigger on content removal and /or addition. It would even trigger if the content permissions are changed. There are no miracles in the SL world, if the event does not trigger the problem is in your code. For instance if a script is changing states, changed event must be included in every state. Link to comment Share on other sites More sharing options...
Domitan Redenblack Posted January 17, 2012 Author Share Posted January 17, 2012 Ela Talaj wrote: changed event indeed would not trigger when a user starts or stops object editing but it will always trigger on content removal and /or addition. It would even trigger if the content permissions are changed. There are no miracles in the SL world, if the event does not trigger the problem is in your code. For instance if a script is changing states, changed event must be included in every state. Yes, you are right. Not sure why it did not do it the first times I tried it. Perhaps scripts needed to be reset 10 times or some such, or LL servers were slow, etc Works fine now. When you add or remove contents, the event is triggered fine. ty! Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now