Creating an interaction

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

naughtyallie fom pillow 800 phone number directory bikini teen sun bingo inventions cheerleading scrabble dictionary ciara singles charts replica gucci pamela anderson porn dartmouth accommodation delonghi carrie underwood song lyrics stop foreclosure m-and-an.info katydids candy longroot.info yahoo personals adobe illustrator cs2 iron maiden guitar tab religion signs of an affair plus size bridesmaid dress playboy bedding t mobile to go phone boob fucking norweigan cruise line jobs online clenbuterol new cholesterol medication keygen bejeweled 2 nascar racing nude free photo home oral sex position old porno lesbian valves clarks shoes granny porno diabetic recipe pontiac parts irs taxes sex cam car covers replacement parts for kenmore dishwashers bionicles reality sex dog food calories fuck wives mustang m-and-an.info football picks local phone service verizon m-and-an.info cataflam fatal car accident free suncom ringtones business loans bedroom furniture rv sales maryland reverse phone directory nude wife silkscreen metal spiral staircase ics payday loan ink cartridges home rabbit hunting free product samples cable internet iwc watch calgary transit 3 mobile review sidekick t mp3 music very cheap airline tickets home sex videos wine cabinets my chemical romance austin homes tag heuer motorola v3 usb driver credit counseling naked women free chevrolet auto parts gloryholes elongate axis free movie download myspace code movies kim dawson lamborghini diablo volvo truck anime music mp3 free antivirus sexy clothing

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