ScarDoc

Start typing to search the SCAR reference.

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/sgrouprequired
  • ownerPlayerIDrequired
  • bApplyToSquadsHeld=trueBooleanoptional

Returns

Void

Source

Declared in the game's script sources at:

scar/scarutil.scar