IsAIEnabled - Actor

From Creation Kit
Jump to: navigation, search

SKSE Member of: Actor Script

Checks whether the actors AI is enabled.

Syntax

bool Function IsAIEnabled() native

Parameters

None.

Return Value

Whether the actors AI is enabled.

Examples

If Ralof.IsAIEnabled() ;Is Ralof's AI enabled?
    Ralof.EnableAI(False) ; If so Disable his AI.
EndIf

See Also