Creating an interaction

From Valve Developer Community
Revision as of 05:51, 26 November 2007 by BasvaRdomr (talk | contribs)
Jump to navigation Jump to search

international phone directory public private lender personal loans online schools latest films *3svbubu.html sex chat free avast antivirus download family crests purchase a computer dragon ball z myspace backgrounds *3ddhlln.html abilify sex videos free zip code lookup adenocarcinoma cancer free cell phones ringtones how to get my high school diploma online dragon ball z hentai redlight district golf sunglasses buy tv southwest airline ticket price free sexmovies mortgage calculator with amortization table home comfort furniture store angler fish wedding napkins phenergan corner shelving unit contemporary bedroom furniture texas hold em sado college search auto usados angelia jolie free chat rooms free sex chat room car paint color christina aguilara nude tera patrick divorce forms home business start ups sex godess deep depression suicide credit card debt aeropostal clothing store *3vkvehr.html columbia house lesbian dating american airline flight schedule astelin kelly blue book price java script free interracial georgia aquarium hairy girls homemade sex toy chopper bike sex kits cricket wireless phone service condylox milf lessons inground pool design film porno maxhardcore sex web cam naked women pictures blackhair carribean maps free nude pics free porn pic juicy couture baby bag growth hormone consolidate debt genuine coffee verizon wireless arena magellan gps prednisolone celion concert dion ticket bronze sculpture cheap laptops small penis inflatable mattresses zorras smart differential pressure transmitter calculator latest films consolidate debt liver amateur blog propoxyphene girls gone wild videos motor nissan philippine does lexapro cause weight gain zorras bare foot sandal dukes of hazzard sprint phone free christian music video downloads

Declaration

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 AI_BEGIN_CUSTOM_NPC section.

Here's an example of the DECLARE_INTERACTION code:

	DECLARE_INTERACTION( g_interactionExample )
Note.pngNote:An interaction should only be declared in one NPC's AI_BEGIN_CUSTOM_NPC section, regardless of how many NPCs utilize it.

Implementation

Todo: Implementation