Background for Skyrim SE
Member of the ObjectReference script
voidfunctionSetNoFavorAllowed(boolabNoFavor=true)Native

Description

Wiki Description

Controls whether the player can ask a follower to operate this object. This function can be used to prevent a follower from activating an activator, looting a container, or picking the lock on a door.

Documentation Comment

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


Parameters

  1. 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
container.SetNoFavorAllowed()
; teammates can loot the container
container.SetNoFavorAllowed(false)

Auto-Generated Example

bool myBool__abNoFavor

myObjectReference__toCallFunctionOn.SetNoFavorAllowed(myBool__abNoFavor)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.