@setgroup controls the avatar's active group (the group tag). @setgroup=n locks it; @setgroup:<name>=force switches to another group the avatar belongs to.

Syntax

@setgroup=<y|n>
@setgroup:<group_name>=force
@setgroup:none=force

Parameters

group_name
The exact group name, compared case-insensitively against the groups the agent belongs to. none deactivates the current group. A name the agent isn't a member of is silently ignored. Group UUIDs aren't accepted.

Specification

Restriction

Force

Looks up the group by name among gAgent.mGroups and activates it.

Caveats

Examples

llOwnerSay("@setgroup=y,setgroup:my club=force,setgroup=n");

Notes

The spec says nothing about the force form being blocked by the restriction. The code (in both viewers) blocks it.

See also

Implementation notes

Marine: force at RRInterface.cpp:2352-2371. The restriction is checked at llgroupactions.cpp:274 (join) and 393 (activate), llviewermessage.cpp:723 (invitation response), llpanelpeople.cpp:1500, and llgrouplist.cpp:385.

Client differences

CoolVL calls gAgent.setGroup(), which also refuses while @setgroup is active (llagent.cpp:5295), and ignores incoming group invitations (llimmgr.cpp:2280). The behavior is the same in both viewers.

Comparison with RLVa

This command works differently from RLVa's @setgroup; see the comparison.