Function
Util
Util_SetPlayerOwner
Sets the player owner for an entity, squad, egroup or sgroup. Also sets player owner of whatever is garrisoned inside them
On this page
Util_SetPlayerOwner(Object, owner, bApplyToSquadsHeld=true)Description
Sets the player owner for an entity, squad, egroup or sgroup. Also sets player owner of whatever is garrisoned inside them
Parameters
Objectentity/squad/egroup/sgrouprequiredownerPlayerIDrequiredbApplyToSquadsHeld=trueBooleanoptional
Returns
VoidSource
Declared in the game's script sources at:
scar/scarutil.scar