Arma 3 Scripting

Command in Multiplayer

setGroupOwner

Also available as Markdown and JSON, or read the original wiki page.

Description

Changes the ownership of a group (and all its units) to a given client. The group leader must not be a player. This command only works when called from the server. Returns true if locality was changed. For agents use setOwner command.

Syntax

group setGroupOwner clientID

Parameters:

Returns: Boolean

Examples

Example 1

_localityChanged = _someGroup setGroupOwner (owner _playerObject);

See also

owner · setOwner · groupOwner