Background for Fallout 4
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


Caveats


Parameters

FactionakFaction

CK Wiki Description

The Faction to set as this object's owner.

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.