SetNoFavorAllowed - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

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

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
explosivesBox.SetNoFavorAllowed()


; teammates can look the container
explosivesBox.SetNoFavorAllowed(false)

See Also[edit | edit source]