Mod:Creation Kit/StartFrenzyAttack - Actor

Member of: Mod:Creation Kit/Actor Script

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

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

Parameters

 * 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
None.

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