Mod:Creation Kit/EnableAI - Actor

Member of: Mod:Creation Kit/Actor Script

Enables or disables this actor's AI.

Syntax
Function EnableAI(bool abEnable = true, bool abPauseVoice = false) native

Parameters

 * abEnable: Whether to enable or disable the AI.
 * Default: True
 * abPauseVoice: 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

Return Value
None.

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