Difference between revisions of "LlSameGroup"
Jump to navigation
Jump to search
m (Fix for alphabetical order in Functions list) |
|||
Line 1: | Line 1: | ||
{{LSL Function | {{LSL Function | ||
|func=llSameGroup | |||
|sort=SameGroup | |||
|func_id=219|func_sleep=0.0|func_energy=10.0 | |func_id=219|func_sleep=0.0|func_energy=10.0 | ||
|return_type=integer | |return_type=integer | ||
|p1_type=key | |p1_type=key |
Revision as of 05:12, 29 March 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: integer llSameGroup( key agent );219 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns an integer boolean, that is TRUE if agent has the same active group, otherwise FALSE
• key | agent | – | must be in the same sim |
Also returns TRUE if the object is deeded to the same active group as agent
Caveats
Examples
//Gives inventory object only to agents with the same active group default { touch_start(integer total_number) { if(llSameGroup(llDetectedKey(0)))//same as llDetectedGroup(0) (with llDetectedGroup, detected does not need to be in the sim) llGiveInventory(llGetInventoryName(INVENTORY_OBJECT,0),llDetectedKey(0)); else llSay(0, "Wrong active group!"); } }
See Also
Functions
• | llDetectedGroup | – | Used in conjunction with detection events |