ScarDoc

Start typing to search the SCAR reference.

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

PlayerID

Source

Declared in the game's script sources at:

scar/util.scar