IsOwnedBy - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script

Is this ref owned by the given actor?

Syntax

bool Function IsOwnedBy(Actor akOwner) native

Parameters

  • akOwner: Actor to check ownership for it requires actual assigned ownership from the editor

Return Value

True if this ref is owned by the given actor. False otherwise.

Examples

; check to see if the mine is owned by its target
bool bsafe = MineRef.IsOwnedBy( akTarget );

See Also