SetNoFavorAllowed - ObjectReference

Revision as of 12:05, 20 November 2015 by imported>Plplecuyer (→‎Examples)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)

See AlsoEdit