Background for Starfield
Member of the ObjectReference script
voidfunctionSetFactionOwner(FactionakFaction, boolabNoCrime=false)Native

Description

Wiki Description

Sets the faction as the owner of this object.

Documentation Comment

Sets this object's owner to the specified faction


Parameters

  1. FactionakFaction

    CK Wiki Description

    The Faction to set as this object's owner.

  2. boolabNoCrime=false

    CK Wiki Description

    Defaults to false. If true, taking this item is not considered a crime despite ownership.


Examples

; 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)

Auto-Generated Example

Faction myFaction__akFaction
bool myBool__abNoCrime

myObjectReference__toCallFunctionOn.SetFactionOwner(myFaction__akFaction, myBool__abNoCrime)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.