GetFactionOwner - ObjectReference

From the CreationKit Wiki
Revision as of 15:26, 18 October 2011 by imported>Rhavlovick (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: ObjectReference Script

Gets the Faction that owns this object. Will return None if the object isn't owned by a faction.

Syntax

Faction Function GetFactionOwner() native

Parameters

None.

Return Value

The Faction that owns this object.

Examples

; Does the empire own the walker?
bool ownsWalker = (WalkerProperty.GetFactionOwner() == EmpireFactionProperty)

See Also