SetAttackActorOnSight - Actor

Member of: Actor Script

Flags this actor to be attacked by all actors when detected

SyntaxEdit

Function SetAttackActorOnSight(bool abAttackOnSight = true) native

ParametersEdit

  • abAttackOnSight: Whether to set or clear the actor's attacke on sight status.
    • Default: True

Return ValueEdit

None.

ExamplesEdit

; Set Buddy to be attacked by everyone
Buddy.SetAttackActorOnSight()


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

See AlsoEdit