Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

detecting dropper

Wally Polonsky
Registered User
Join date: 22 Sep 2005
Posts: 4
10-19-2005 00:09
how do i detect who dropped an object?
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
10-19-2005 02:07
When using llAllowedDrop, whenever someone other than the owner drops something in the object, it rises the changed event with the value "CHANGED_ALLOWED_DROP". Unfortunately there is no way to know within this event who did drop the object, but if you can identify which object has been dropped you can guess from its creator key.

The other method is to have your object waiting for someone to touch it, register the key of the person who touched it, switch to another state where Drop is allowed, confirm the key if something is dropped, then (or after a timeout) go back to the initial state (where Drop is not allowed).
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.