Creating an interaction

From Valve Developer Community
Revision as of 15:53, 12 November 2007 by DronbOdome (talk | contribs)
Jump to navigation Jump to search

nude ass video allison angel elizabeth lindsay davis june 2005 calender 5 portable dvd players juvenile court judges commission journal write topics jack arnold home for sale accessory boost mobile phone quantitative decision making techniques anglii prace v aviation poster art now communications telephone service outcome evaluation army learned lesson school transition programs zed 24 windows media player 9.0 series english electric valve company shyla stylez free movies transformation in mathematics army order of precedence all folders read only the ranson northern michigan vacation property reality mpeg ray gross motors natural cures database jennifer lopez upskirt photo administrator certified microsoft system cheap glucophage kick boxing schools email marketing strategic pinay big rpc requests warehouses for rent in chicago nintendo specification wii american history syllabus show what you mean speech velocity training picture of semana santa hoodia online play snooker free 1999 99 business week to marry a millionaire kashmir music vacuums consumer reports style consultant toronto scavo exchange 2003 reverse dns juegos viejos reloj de la muerte 1997 michigan football country ringtones average salary veternarian symantec system center console download little house on the prairies series symbian gameboy neck and back problems inventor tutorial lord of illusions wine buys ecard gay love lambert and lambert real estate mp3 minder make resume steps meridia online buy flonase world of britney pictures ice hockey equipment shops less than truck load picture of symmetry in nature discount imitrex vacant industrial addition to existing structure build easy punch recipe orange theater tree ny mortgage refinance my uploads ultra diet easy disguise pro war songs vietnam open ended sales swedish floor finishes st joseph hospital oakland satellite cable connection alberta edmonton journal mario power tennis guide transportation of dangerous goods regulations print shop 8 picture pregnant long evans rat audio auto automotive video 2 demo hero magic might print index cards time in lahore words to that effect java utilities sleeping during the day i hide away. interesting plants and animals in brazil

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