Mod:Creation Kit/SetFactionOwner - ObjectReference

Member of: Mod:Creation Kit/ObjectReference Script

Sets the faction as the owner of this object.

Syntax
Function SetFactionOwner(Faction akFaction, bool abNoCrime = false) native

Parameters

 * akFaction: The Faction to set as this object's owner.
 * abNoCrime: Defaults to false. If true, taking this item is not considered a crime despite ownership.

Return Value
None.

Examples
WalkerProperty.SetFactionOwner(EmpireFactionProperty) WalkerProperty.SetFactionOwner(EmpireFactionProperty, true)
 * Set the empire as owning the walker
 * Set the empire as owning the walker, but it's not a crime if anyone outside the faction takes it.