SetNoFavorAllowed - ObjectReference

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

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.

Syntax[edit | edit source]

Function SetNoFavorAllowed(bool abNoFavor = true) native

Parameters[edit | edit source]

  • abNoFavor: Whether the object can not be used as a favor by teammate
    • Default: True

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; the teammate will not loot the container
container.SetNoFavorAllowed()


; teammates can loot the container
container.SetNoFavorAllowed(false)

See Also[edit | edit source]