Creating an interaction

From Valve Developer Community
Revision as of 13:25, 9 November 2007 by DronbOdome (talk | contribs)
Jump to navigation Jump to search

air cleaning duct tool lords prayer children saw mill plan perfect 10 bodies abrasion micro monitor panel account account free investment investment savings tax uk aluminum structures estimator income online tax audio production jobs add album link review suggest red river harley davidson st. leos university florida i m your lady and you re my man eisenhowers family 2 pac california lyric reseller terms and conditions 50 cent best picture woman prefer thermal exhaust tip muslim converted to christianity acapulco guerrero 3d web sites road trip music session variables cookies auto show immigration lawyers canada erotic audio and free download marriage certificate in massachusetts intensity rainfall side of lil flip television cable advertising cost sma engines java formatted output microsoft cluster service 2003 spend all your time waiting used guitar case after high school programs installing insulation presidents fitness challenge wrinkled people titan home loans the strokes new single spot different game textile design jobs london paul w.s anderson what is occupational health and saftey 4th reich modern day explorers 02 uk phones night and the city deniro sample bridal shower game servo mounts jetta cars spanish for police officers thomas thomas rods pda built in keyboard ejaculation free premature austin randalls texas aim user profiles islamic accounting standard no such thing as god online tobacco stores kid zone sign spanish victoria british columbia accommodation anxiety depression drug inventor tutorial msn messeger beta what is aspartame found in transformation in mathematics shirley miller nursing career in the nhs medical doctor form my wife while i watch 2 download legend man x american capital state pilgrimage history so help me god book asteroid game zone live chat cams altavista high school which video game character are you tux logo z score p value table ps to pdf converter free austin randalls texas tip on cleaning the face vonage phone service ratings network storage enclosure lady bird beetle 3d fire screensaver religions in south america what about us la it girl used dirt bike engines anything goes in a place pc comparison guide its wanting what you ve got material services juegos de carreras de caballos

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