Background for Starfield
Member of the Actor script
voidfunctionEnableAI(boolabEnable=true, boolabPauseVoice=false)Native

Description

Wiki Description

Enables or disables this actor's AI.

Documentation Comment

Enables or disable's this actor's AI, pausing their voice mid-line if desired.


Parameters

  1. boolabEnable=true

    CK Wiki Description

    Whether to enable or disable the AI.

    • Default:True
  2. boolabPauseVoice=false

    CK Wiki Description

    Ignored if abEnable is True. If abEnable is False, setting this to True will pause the Actor's current voice audio, so it can be resumed upon re-enable. If left False, existing voice audio will play to completion.

    • Default:False

Examples

; Turn off evil AI
EvilActor.EnableAI(false)
; Turn on good guy's AI
GoodActor.EnableAI()
; Freeze frame!
JGeils.EnableAI(false, true)
Utility.Wait(5)
; Now go!
JGeils.EnableAI()

Auto-Generated Example

bool myBool__abEnable
bool myBool__abPauseVoice

myActor__toCallFunctionOn.EnableAI(myBool__abEnable, myBool__abPauseVoice)

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.