GetOwningPlayer

Parameters
whichUnitunit

Target unit.

comment

Returns the owner player of the unit.

note

See: SetUnitOwner.

patch

1.00

Source
common.j (raise an issue to discuss on Github or submit a PR)
return type
player
Source code
constant native GetOwningPlayer     takes unit whichUnit returns player