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:
group: GroupclientID: Number - the machine network ID of the new owner.
Returns: Boolean
Examples
Example 1
_localityChanged = _someGroup setGroupOwner (owner _playerObject);
See also
owner · setOwner · groupOwner