ToggleAI

From GECK
Jump to: navigation, search

Turns off calling actor's AI or all AI in the game if no calling actor is specified. This causes it to freeze in place, but gravity still affects it. Useful for pausing an actor in place to take screenshots.

Syntax

ActorRef.ToggleAI

Or:

ActorRef.TAI

Notes

  • Sometimes if an actor is playing an animation such as walking, toggling the AI on all actors (by calling ToggleAI without a reference selected), the walking actor will continue playing the animations for some time.
  • If an enemy actor dies while its AI is disabled, its red enemy marker will still appear on the compass.
  • Will prevent enemies from going into combat from detection but does not always prevent combat if the player attacks the actor.

See Also