LSL feature request. The described function does not exist. This article is a feature request.
integer llSameGroupOfficer( key agent );
Forced delay: 0.0 seconds. Energy: 10.0.
Also returns TRUE if the object is deeded to the group in which agent is an officer
Returns an integer boolean, that is TRUE if agent is officer in the same group than the object, otherwise FALSE
<lsl>// Gives inventory object only to officers of the same group than the object default {
touch_start(integer number)
{
do
{
key avatar = llDetectedKey(--number);
if (llSameGroupOfficer(avatar))
{
llGiveInventory(avatar, llGetInventoryName(INVENTORY_OBJECT, 0));
}
else
{
llSay(0, "You are not an officer of my group!");
}
}while(number);
}
}</lsl>