Background for Fallout 4
Member of the Actor script
voidfunctionSetAttackActorOnSight(boolabAttackOnSight=true)Native

Description

Wiki Description

Flags this actor to be attacked by all actors when detected

Documentation Comment

Sets this actor to be attacked by all other actors on sight


Caveats


Parameters

boolabAttackOnSight=true

CK Wiki Description

Whether to set or clear the actor's attacke on sight status.

  • Default:True

Examples

; Set Buddy to be attacked by everyone
Buddy.SetAttackActorOnSight()
; Clear buddy getting attacked by everyone
Buddy.SetAttackActorOnSight(false)

Auto-Generated Example

bool myBool__abAttackOnSight

myActor__toCallFunctionOn.SetAttackActorOnSight(myBool__abAttackOnSight)

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.