StartFrenzyAttack - Actor

Member of: Actor Script

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

SyntaxEdit

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

ParametersEdit

  • 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 ValueEdit

None.

ExamplesEdit

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


See AlsoEdit