Ai npc eventresponsesystem: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (removed {{DISPLAYTITLE}}, covered by the hl2 point template)
(updates)
Line 1: Line 1:
{{hl2 point|ai_npc_eventresponsesystem}} (Since Half-Life 2: Episode One)
{{lang|Ai npc eventresponsesystem}}
{{hl2 point|ai_npc_eventresponsesystem}} An entity that allows you to generate events for nearby friendly NPCs to respond to. {{todo|Example use?}}


==Entity description==
{{code class|CNPCEventResponseSystemEntity|ai_eventresponse.cpp}}
An entity that allows you to generate events for nearby friendly NPCs to respond to.
 
==ConVars/Commands==
{{varcom|start}}
{{varcom|ai_debug_eventresponses|0|01|"Set to 1 to see all NPC response events trigger, and which NPCs choose to respond to them."}}
{{varcom|end}}


==Keyvalues==
==Keyvalues==
{{KV Targetname}}
{{KV BaseEntity|base=1}}


==Inputs==
==Inputs==
{{I Targetname}}
{{IO|TriggerResponseEvent|param=string|Fire an NPC Response Event. The parameter should match the response rules concept that any nearby friendly NPCs will try to speak.}}
 
{{IO|ForceTriggerResponseEvent|param=string|Fire an NPC Response Event, and force the first available NPC to speak the response (breaking them out of any scene they're in). The parameter should match the response rules concept that any nearby friendly NPCs will try to speak.}}
{{KV|TriggerResponseEvent|string|Fire an NPC Response Event. The parameter should match the response rules concept that any nearby friendly NPCs will try to speak.}}
{{IO|ForceTriggerResponseEventNoCancel|param=string|Fire an NPC Response Event, and force the first available NPC to speak the response (but '''don't''' break them out of any scene they're in). The parameter should match the response rules concept that any nearby friendly NPCs will try to speak.}}
 
{{I BaseEntity|base=1}}
{{KV|ForceTriggerResponseEvent|string|Fire an NPC Response Event, and force the first available NPC to speak the response (breaking them out of any scene they're in). The parameter should match the response rules concept that any nearby friendly NPCs will try to speak.}}


==Outputs==
==Outputs==
{{O Targetname}}
{{O BaseEntity}}


[[Category:Half-Life 2: Episode One Entities]]
[[Category:Half-Life 2 Entities]]
[[Category:AI]]
[[Category:AI]]

Revision as of 20:19, 3 September 2018

English (en)Translate (Translate)

Template:Hl2 point An entity that allows you to generate events for nearby friendly NPCs to respond to.

Todo: Example use?
C++ In code, it is represented by theCNPCEventResponseSystemEntityclass, defined in theai_eventresponse.cppfile.

ConVars/Commands

Cvar/Command Parameters or default value Descriptor Effect
ai_debug_eventresponses 0 0 disables, 1 enables "Set to 1 to see all NPC response events trigger, and which NPCs choose to respond to them."

Keyvalues

Inputs

TriggerResponseEvent <stringRedirectInput/string>
Fire an NPC Response Event. The parameter should match the response rules concept that any nearby friendly NPCs will try to speak.
ForceTriggerResponseEvent <stringRedirectInput/string>
Fire an NPC Response Event, and force the first available NPC to speak the response (breaking them out of any scene they're in). The parameter should match the response rules concept that any nearby friendly NPCs will try to speak.
ForceTriggerResponseEventNoCancel <stringRedirectInput/string>
Fire an NPC Response Event, and force the first available NPC to speak the response (but don't break them out of any scene they're in). The parameter should match the response rules concept that any nearby friendly NPCs will try to speak.


Outputs