Difference between revisions of "LlInviteToGroup"

From Second Life Wiki
Jump to navigation Jump to search
m (A little clean up)
m (wrong injection site ~_~, why do i need inject-1? To inject info for mode templates)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{cleanup|April 2007}}
{{LSL_Function
 
|inject-2={{LSL_Function/permission|PERMISSION_GROUP_INVITE|grant=a group officer}}{{LSL_Function/avatar|avatar}}
We need some way to invite an avatar to join the owners group if he has the right to invite members and has given the script permission to act as his delegate.
|func_id
|func_sleep
|func_energy
|func=llInviteToGroup
|p1_type=key|p1_name=avatar
|p2_type=string|p2_name=role|p2_desc=Role name '''avatar''' is to have.
|sort
|func_desc=Adds '''avatar''' to the group the object is deeded to.
|return_text
|return_type
|spec=We need some way to invite an avatar to join the owners group if he has the right to invite members and has given the script permission to act as his delegate.


llInviteToGroup(key group, key avatar)
llInviteToGroup(key group, key avatar)
Line 10: Line 20:


would be great.
would be great.
==See Also==
*[[llRequestPermissions]]
*[[Run_time_permissions]]


We basically need to be able to perform group administration tasks if the script owner is in the group and has the right to perform these tasks.
We basically need to be able to perform group administration tasks if the script owner is in the group and has the right to perform these tasks.


Depending on if the script has a ('active') group if it's not group-owned we might or might not need another function: list [[llGetOwnerGroups]]()
Depending on if the script has a ('active') group if it's not group-owned we might or might not need another function: list [[llGetOwnerGroups]]()
|caveats
|examples
|helpers
|related
|also_functions
|also_events
|notes
|mode=request}}

Latest revision as of 09:47, 2 November 2010

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

Summary

Function: llInviteToGroup( key avatar, string role );

Adds avatar to the group the object is deeded to.

• key avatar avatar UUID
• string role Role name avatar is to have.

To run this function the script must request the PERMISSION_GROUP_INVITE permission with llRequestPermissions and it must be granted by a group officer.

Specification

We need some way to invite an avatar to join the owners group if he has the right to invite members and has given the script permission to act as his delegate.

llInviteToGroup(key group, key avatar)

or

llInviteToGroup(key avatar)

would be great.

We basically need to be able to perform group administration tasks if the script owner is in the group and has the right to perform these tasks.

Depending on if the script has a ('active') group if it's not group-owned we might or might not need another function: list llGetOwnerGroups()

Caveats

Permissions

Examples

See Also

Events

•  run_time_permissions Permission receiving event

Functions

•  llGetPermissions Get the permissions granted
•  llGetPermissionsKey Get the agent who granted permissions
•  llRequestPermissions Request permissions

Articles

•  Script permissions

Deep Notes

Signature

//function void llInviteToGroup( key avatar, string role );