GetFactionOwner - ObjectReference

From the Fallout4 CreationKit Wiki
Revision as of 13:39, 14 October 2014 by imported>Plplecuyer
(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[edit | edit source]

Faction Function GetFactionOwner() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

The Faction that owns this object.

Examples[edit | edit source]

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

See Also[edit | edit source]