Creating an interaction

From Valve Developer Community
Revision as of 20:12, 11 December 2007 by DronbOdome (talk | contribs)
Jump to navigation Jump to search

gastrointestinal tract men taking showers american airline ticket first sex racing videos pill identifier pregnancy complications cheap air flights ticket grand theft auto 4 sony paralegal course college grants michael anthony gold watch young anal free photo personal ecco shoes adult cool costume halloween albuterol wedding shower invitations toshiba notebook laminate free nextel phone ringtones nascar wallpaper sleeper chair aquarium stands free video porn verizon wireless ring tones metabothin frree mp3 mueller metal buildings young tits couture ii juicy sidekick topless celebs verizon vitiligo reebok shoes reverse lookup cheap heelys serial do photo shop cs vacation packages download kaspersky license key printable wedding invitations over the door towel bar shirley temple maps christmas heart disease computer virus online diazepam adult toys free nude pics typing tutor ebay auctions play free slot disneyland formflow download ketoconazole machine sex ringworm treatment trailer parts mature free jordan sneaker debt settlement chronic alcoholism ingersoll rand brylane homes small penis pictures medifast diet soma online cheap baby shower invitations free ringtone lcd review samsung tv free horoscope chart readers digest the rasmus christian chatroom pregnant porn carmen alectra dukes of hazzard cheap airline flight anal virgin nymphette sweet 16 coffee and caffeine asian gay tempurpedic mattress pad accords nissan altima performance part foods lottery azureus treasure island patio furniture key bank free bondage pics acne blue light pool table business opportunities bbw galleries brownies with cocoa asian babes

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