[dismiss]
This wiki is a copy of the original Skyrim CK wiki created and maintained by the UESP.net. See CreationKit:Copy Notice for more info.
SetFactionOwner - ObjectReference
Jump to navigation
Jump to search
Member of: ObjectReference Script
Sets the faction as the owner of this object.
Syntax[edit | edit source]
Function SetFactionOwner(Faction akFaction, bool abNoCrime = false) native
Parameters[edit | edit source]
- 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[edit | edit source]
None.
Examples[edit | edit source]
; Set the empire as owning the walker
WalkerProperty.SetFactionOwner(EmpireFactionProperty)
; Set the empire as owning the walker, but it's not a crime if anyone outside the faction takes it.
WalkerProperty.SetFactionOwner(EmpireFactionProperty, true)