SetNoFavorAllowed - ObjectReference
Member of: ObjectReference Script
Sets or clears this object's ability to be not used by a teammate for a favor
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
explosivesBox.SetNoFavorAllowed()
; teammates can look the container
explosivesBox.SetNoFavorAllowed(false)