ai_npc_eventresponsesystem

From Source Entities
Jump to navigation Jump to search

Code classes:

ai_npc_eventresponsesystem is a point entity present in the Hl2.pngHalf-Life 2 series and P2.pngPortal 2, but not Half-Life 2: Deathmatch. It makes the nearest NPC to the player within 768 units speak a response concept, such as TLK_PLAYERUSE.

Inputs[edit | edit source]

TriggerResponseEvent <string>
Makes an NPC speak the specified concept. If the nearest NPC is currently in a scene, they will ignore the concept. Farther NPCs will not do anything.
ForceTriggerResponseEvent <string>
Makes an NPC speak the specified concept. If the nearest NPC is currently in a scene, they will be taken out of it when they speak this concept.
ForceTriggerResponseEventNoCancel <string>
Makes an NPC speak the specified concept. If the nearest NPC is currently in a scene, they will resume it when they finish speaking the concept.