setGroupOwner: Difference between revisions
Jump to navigation
Jump to search
(server exec) |
No edit summary |
||
Line 45: | Line 45: | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command_Group:_Multiplayer|{{uc:{{PAGENAME}}}}]] | [[Category:Command_Group:_Multiplayer|{{uc:{{PAGENAME}}}}]] | ||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on July 30, 2015 - 12:49 (UTC)</dd> | |||
<dt class="note">[[User:IT07|IT07]]</dt> | |||
<dd class="note"> | |||
In ArmA3 1.48, setGroupOwner does NOT work if group has no units | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 13:49, 30 July 2015
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