If an avatar
on the sit target
, this function will return
the avatar's 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.
Q: It's only returning NULL_KEY! What's up with that?
A: llAvatarOnSitTarget will only work if llSitTarget has been set.
This article wasn't helpful for you? Maybe the related article at the LSL Portal
is able to bring enlightenment.