Creating an interaction
Interactions are messages that are transmitted between NPCs, such as allowing one NPC to dodge an attack, or to fly in a specific direction and set a certain state when kicked.
The first step to creating an interaction for your NPC is to create a name for it and add it to the "Interactions" section as well as adding it to
src\dlls\hl2_dll\AI_Interactions.h. Here's an example name for an activity: g_interactionVortigauntKick.
Once the activity is added, you must use the
DECLARE_INTERACTION macro in the
Here's an example of the DECLARE_INTERACTION code:
DECLARE_INTERACTION( g_interactionExample )
AI_BEGIN_CUSTOM_NPCsection, regardless of how many NPCs utilize it.
To do: Implementation