Description
From server machine, change the ownership of an object to a given client. Using command in an unintended way will log a message to .rpt file. To transfer ownership of all AI units in a group properly, use setGroupOwner instead.
Syntax
object setOwner clientID
Parameters:
object: Object - object to transferclientID: Number - the machine network ID of the new owner.
Returns: Boolean - returns true if ownership was successfully transferred, otherwise false
Examples
Example 1
_someObject setOwner 12;
Example 2
_someObject setOwner (owner _playerObject);
Problems
Note
Arma 3: Since Arma 3 v1.40, this command should not be used to transfer ownership of units with AI with the exception of agents.
Important
Prior to Arma 3 v1.40 it was not possible to transfer the ownership from a client back to the server.