Function
Util
Util_GetPlayerOwner
Returns the player owner for any of: entity, squad, egroup, sgroup, player. for groups, the first item is used. Returns nil for world owned or empty groups
On this page
Util_GetPlayerOwner(Object)Description
Returns the player owner for any of: entity, squad, egroup, sgroup, player. for groups, the first item is used. Returns nil for world owned or empty groups
Parameters
Objectentity/squad/egroup/sgroup/playerrequired
Returns
PlayerIDSource
Declared in the game's script sources at:
scar/util.scar