Background for Fallout 4
Member of the ObjectReference script
voidfunctionSetNoFavorAllowed(boolabNoFavor=true)Native

Description

Wiki Description

Sets or clears this object's ability to be not used by a teammate for a favor

Documentation Comment

Sets this object reference as one that teammates will refuse to do favors on


Caveats


Parameters

boolabNoFavor=true

CK Wiki Description

Whether the object can not be used as a favor by teammate

  • Default:True

Examples

; the teammate will not loot the container
explosivesBox.SetNoFavorAllowed()
; teammates can look the container
explosivesBox.SetNoFavorAllowed(false)

Auto-Generated Example

bool myBool__abNoFavor

myObjectReference__toCallFunctionOn.SetNoFavorAllowed(myBool__abNoFavor)

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.