setGroupOwner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|exec=" to "|serverExec=")
m (Add TMZulu's note)
Line 12: Line 12:
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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=
____________________________________________________________________________________________
}}
}}


Line 41: Line 36:


<h3 style='display:none'>Bottom Section</h3>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma 3: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Multiplayer|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Multiplayer|{{uc:{{PAGENAME}}}}]]


<!-- CONTINUE Notes -->
<!-- CONTINUE Notes -->
<dl class="command_description">
<dl class="command_description">
<dd class="notedate">Posted on July 30, 2015 - 12:49 (UTC)</dd>
<dd class="notedate">Posted on July 30, 2015 - 12:49 (UTC)</dd>
<dt class="note">[[User:IT07|IT07]]</dt>
<dt class="note">[[User:IT07|IT07]]</dt>
<dd class="note">
<dd class="note">
In ArmA3 1.48, setGroupOwner does NOT work if group has no units
In ArmA3 1.48, setGroupOwner does NOT work if group has no units
</dd>
<dd class="notedate">Posted on April 28, 2020 - 22:58 (UTC)</dd>
<dt class="note">[https://forums.bohemia.net/profile/1117131-tmzulu/ TMZulu]</dt>
<dd class="note">
The [[setGroupOwner]] command will dismount the unit leader of a vehicle if the vehicle is stationary, likely due to the dummy waypoint used in the transfer.<br>
[[lock|Locking]] the vehicle during transfer can counter this behavior.
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->
<!-- DISCONTINUE Notes -->

Revision as of 22:58, 28 April 2020

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
Posted on April 28, 2020 - 22:58 (UTC)
TMZulu
The setGroupOwner command will dismount the unit leader of a vehicle if the vehicle is stationary, likely due to the dummy waypoint used in the transfer.
Locking the vehicle during transfer can counter this behavior.