Background for Fallout 4
Member of the ObjectReference script
voidfunctionIgnoreFriendlyHits(boolabIgnore=true)Native

Description

Wiki Description

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.

Documentation Comment

Flags this reference as ignoring (or not ignoring) friendly hits


Caveats

CK Wiki - Notes

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

Parameters

boolabIgnore=true

CK Wiki Description

Whether to ignore friendly hits or not.

  • Default:True

Examples

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

Auto-Generated Example

bool myBool__abIgnore

myObjectReference__toCallFunctionOn.IgnoreFriendlyHits(myBool__abIgnore)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.