setGroupOwner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (template:command argument fix)
Line 14: Line 14:
| group '''setGroupOwner''' clientID |= Syntax
| group '''setGroupOwner''' clientID |= Syntax


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


|p2= clientID: [[Number]] - clientID of the new [[owner]] |= PARAMETER2
|p2= clientID: [[Number]] - clientID of the new [[owner]] |PARAMETER2=


|p3= |= PARAMETER3
|p3= |PARAMETER3=  


| [[Boolean]] |= RETURNVALUE
| [[Boolean]] |RETURNVALUE=  




|x1= <code>_localityChanged = _someGroup [[setGroupOwner]] ([[owner]] _playerObject);</code>|= EXAMPLE1
|x1= <code>_localityChanged = _someGroup [[setGroupOwner]] ([[owner]] _playerObject);</code>|EXAMPLE1=  


____________________________________________________________________________________________
____________________________________________________________________________________________


| [[owner]], [[setOwner]], [[groupOwner]] |= SEEALSO
| [[owner]], [[setOwner]], [[groupOwner]] |SEEALSO=  


|  |= MPBEHAVIOUR
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}

Revision as of 10:37, 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