key llAvatarOnSitTarget()
If an
avatar is
sitting on the sit
target, this function will
return the avatar's
key;
NULL_KEY otherwise. This will only detect avatars sitting on sit targets defined with
llSitTarget. At some point prior to
SL 1.6.5, it would apparently work without, but has apparently not been the case for some time.
Scripts compiled prior to the change will function correctly, but recompiling them will cause them to break.
Agents that sit on the object, are linked to the object and are added to the end of the link set. See
llGetNumberOfPrims for example functions.
Example:
Q: It's only returning NULL_KEY! What's up with that?
A: llAvatarOnSitTarget will only work if llSitTarget has been set.
Agent/Avatar |
Functions |
sit |
target