SetNoFavorAllowed - ObjectReference
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.
SyntaxEdit
Function SetNoFavorAllowed(bool abNoFavor = true) native
ParametersEdit
- abNoFavor: Whether the object can not be used as a favor by teammate
- Default: True
Return ValueEdit
None.
ExamplesEdit
; the teammate will not loot the container
container.SetNoFavorAllowed()
; teammates can loot the container
container.SetNoFavorAllowed(false)