Difference between revisions of "GetActorOwner - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Rhavlovick
m (1 revision: Clobber re-import by Henning)
 
imported>Zartar
Line 21: Line 21:
bool playerOwnsSword = (SwordProperty.GetActorOwner() == Game.GetPlayer().GetActorBase())
bool playerOwnsSword = (SwordProperty.GetActorOwner() == Game.GetPlayer().GetActorBase())
</source>
</source>
== Notes ==
NEEDS VERIFICATION: This function always returns none. It used to work correctly, perhaps it was broken in an update?


== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ObjectReference Script]]
*[[SetActorOwner - ObjectReference]]
*[[SetActorOwner - ObjectReference]]

Revision as of 19:41, 18 April 2013

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?

See Also