setGroupOwner

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 1.40
  This scripting command must be executed on the server to work properly in multiplayer

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.40

Description

Description:
Changes the ownership of a group (and all its units) to a given client. Group leader can't be a player. Only works when called from a server. Returns true if locality was changed. For agents use setOwner command.

Syntax

Syntax:
group setGroupOwner clientID
Parameters:
group: Group -
clientID: Number - clientID of the new owner
Return Value:
Boolean

Examples

Example 1:
_localityChanged = _someGroup setGroupOwner (owner _playerObject);

Additional Information

Multiplayer:
-
See also:
ownersetOwnergroupOwner

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

Posted on July 30, 2015 - 12:49 (UTC)
IT07
In ArmA3 1.48, setGroupOwner does NOT work if group has no units