Hey guys,
I got this MOSTLY working now, using this:
default{ state_entry() { // set sit target, otherwise this will not work llSitTarget(<0.0, 0.0, 0.1>, ZERO_ROTATION); } changed(integer change) { if (change & CHANGED_LINK) { key av = llAvatarOnSitTarget(); if (av) // evaluated as true if key is valid and not NULL_KEY { llGiveInventory((av),llGetInventoryName(INVENTORY_OBJECT,0)); } } }}
Unfortunately as it's a set of 4 linked poseballs, the items are given to each person both on sit and to the remaining sitters on stand. Any way to correct this behaviour other than unlinking them and serving them as a group? I suspect a for each statement, and this scares me =\