CAI_BaseActor

From Source Entities
Jump to navigation Jump to search

CAI_BaseActor is a class available in all Source games except L4d.pngL4d2-small.png. Most functions are concerned with speech and facial movement.

Keyvalues[edit | edit source]

Don't Use Speech Semaphore (DontUseSpeechSemaphore) <boolean>
NPCs are not allowed to speak when another friendly NPC is already talking. In some cases, you don't want speaking NPCs to prevent other NPCs from speaking (for instance, if there is a friendly NPC speaking for a long time on a monitor). To allow NPCs to talk over this one, choose Yes.
Facial expression override (ExpressionOverride) <scene>
A scene to play on this NPC. To do: What scenes are acceptable? Some cause jittery movement and caption spam.

Inputs[edit | edit source]

SetExpressionOverride <scene>
Sets Facial expression override.