IgnoreFriendlyHits - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

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.

Syntax[edit | edit source]

Function IgnoreFriendlyHits(bool abIgnore = true) native

Parameters[edit | edit source]

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

Return Value[edit | edit source]

None.

Examples[edit | edit source]

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


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

Notes[edit | edit source]

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

See Also[edit | edit source]