GetActorOwner - ObjectReference
Revision as of 19:41, 18 April 2013 by imported>Zartar
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())
Notes
NEEDS VERIFICATION: This function always returns none. It used to work correctly, perhaps it was broken in an update?