StartFrenzyAttack - Actor

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Puts the actor into Frenzy attack mode using a random target selector.

Syntax[edit | edit source]

Function StartFrenzyAttack(float aChance = 0.1, float aInterval = 0.5) native

Parameters[edit | edit source]

  • aChance: Chance from 0.01 to 1.0 of switching target on next check.
    • Default: 0.1
  • aInterval: Target switch check interval in seconds. If 0 value is given frenzy attack will not be started.
    • Default: 0.5

Return Value[edit | edit source]

None.

Examples[edit | edit source]

Event OnCripple(ActorValue akActorValue, bool abCrippled)
    ;if crippling the brain enter frenzy attack mode.
    if akActorValue == braincondition
        selfRef.StartFrenzyAttack(fChance, fInterval)
    endIf
EndEvent


See Also[edit | edit source]