SetAttackActorOnSight - Actor

From the CreationKit Wiki
Revision as of 15:27, 18 October 2011 by imported>Rhavlovick (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script

Flags this actor to be attacked by all actors when detected

Syntax[edit | edit source]

Function SetAttackActorOnSight(bool abAttackOnSight = true) native

Parameters[edit | edit source]

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

Return Value[edit | edit source]

None.

Examples[edit | edit source]

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


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

See Also[edit | edit source]