LSL feature request. The described function does not exist. This article is a feature request.

Syntax

integer llSameGroupOwner( key agent );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

key agent
must be in the same sim and must carry the appropriate group tag

Also returns TRUE if the object is deeded to the group of which agent is an owner

Return value

Returns an integer boolean, that is TRUE if agent is owner of the same group than the object, otherwise FALSE

Examples

<lsl>// Gives inventory object only to owners of the same group than the object default {


   touch_start(integer number)
   {
       do
       {
           key avatar = llDetectedKey(--number);
           if (llSameGroupOwner(avatar))
           {
               llGiveInventory(avatar, llGetInventoryName(INVENTORY_OBJECT, 0));
           }
           else
           {
               llSay(0, "You are not an owner of my group!");
           }
       }while(number);
   }

}</lsl>

See also

Functions