IgnoreFriendlyHits - ObjectReference

Revision as of 05:57, 24 October 2021 by imported>Scrivener07
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: ObjectReference Script

Flags this reference as ignoring (or not ignoring) friendly hits. In other words, it won't turn hostile after several hits from a friendly opponent.

SyntaxEdit

Function IgnoreFriendlyHits(bool abIgnore = true) native

ParametersEdit

  • abIgnore: Whether to ignore friendly hits or not.
    • Default: True

Return ValueEdit

None.

ExamplesEdit

; Tells this reference to ignore friendly hits
TempReference.IgnoreFriendlyHits()


; Tells this reference to no longer ignore friendly hits
TempReference.IgnoreFriendlyHits(false)

NotesEdit

  • It's been reported that this function doesn't account for hits which have secondary effects that deal damage such as explosions.

See AlsoEdit