LlSameGroupOfficer

From Second Life Wiki

Second Life Wiki > LlSameGroupOfficer
Jump to: navigation, search

Template:Needs Translation/LSL/de Template:Needs Translation/LSL/es Template:Needs Translation/LSL/el Template:Needs Translation/LSL/fr Template:Needs Translation/LSL/he Template:Needs Translation/LSL/it Template:Needs Translation/LSL/ja Template:Needs Translation/LSL/ko Template:Needs Translation/LSL/nl Template:Needs Translation/LSL/hu Template:Needs Translation/LSL/no Template:Needs Translation/LSL/da Template:Needs Translation/LSL/sv Template:Needs Translation/LSL/tr Template:Needs Translation/LSL/pl Template:Needs Translation/LSL/pt Template:Needs Translation/LSL/ru Template:Needs Translation/LSL/uk Template:Needs Translation/LSL/zh-Hans Template:Needs Translation/LSL/zh-Hant

Image:Emblem-important-yellow.png LSL Feature Request
The described function does not exist. This article is a feature request.

Contents

Summary

Function: integer llSameGroupOfficer( key agent );
REQUEST Function ID
0.0 Delay
10.0 Energy

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

• 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 in which agent is an officer

Examples

// 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);
    }
}

See Also

Functions

•  llDetectedGroup Used in conjunction with detection events
•  llSameGroup
•  llSameGroupOwner

Deep Notes

In other languages