Background for Fallout 4
Member of the Actor script
voidfunctionStartFrenzyAttack(floataChance=0.1, floataInterval=0.5)Native

Description

Wiki Description

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

Documentation Comment

Starts a frenzey attack target selector.


Caveats


Parameters

floataChance=0.1

CK Wiki Description

Chance from 0.01 to 1.0 of switching target on next check.

  • Default:0.1

floataInterval=0.5

CK Wiki Description

Target switch check interval in seconds. If 0 value is given frenzy attack will not be started.

  • Default:0.5

Examples

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

Auto-Generated Example

float myFloat__aChance
float myFloat__aInterval

myActor__toCallFunctionOn.StartFrenzyAttack(myFloat__aChance, myFloat__aInterval)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.