GetActorOwner - ObjectReference
Revision as of 15:26, 18 October 2011 by imported>Rhavlovick (1 revision: Clobber re-import by Henning)
Member of: ObjectReference Script
Gets the ActorBase that owns this object. Will return None if the object isn't owned by an actor.
Syntax
ActorBase Function GetActorOwner() native
Parameters
None.
Return Value
The ActorBase that owns this object.
Examples
; Does the player own the sword?
bool playerOwnsSword = (SwordProperty.GetActorOwner() == Game.GetPlayer().GetActorBase())