GetOwner

Category: Objects / Status
Since engine version: 4.6.5.0 CP

Description

Determines the owner of an object.

Syntax

int GetOwner (object pObj);

Parameter

pObj:
[opt] Object of which to determine the owner. Can be 0 in local calls.

Example

Message("Ich gehöre %s!", this(), GetPlayerName(GetOwner()))
Displays the owner of the calling object above the object.
See also: SetOwner
Sven2, November 2001