setGroupOwner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (template:command argument fix)
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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. |= 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. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| group '''setGroupOwner''' clientID |= Syntax
| group '''setGroupOwner''' clientID |SYNTAX=


|p1= group: [[Group]] -  |PARAMETER1=  
|p1= group: [[Group]] -  |PARAMETER1=  

Revision as of 14:47, 7 April 2019

Hover & click on the images for description

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.
Groups:
Uncategorised

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

See also:
ownersetOwnergroupOwner

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

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