Defining the NPC: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (note) |
||
Line 5: | Line 5: | ||
Example: <code>src\dlls\hl2_dll\npc_Barney.cpp</code> | Example: <code>src\dlls\hl2_dll\npc_Barney.cpp</code> | ||
Note the '''AI_BEGIN_CUSTOM_NPC''' section. This will be an important section for later steps. | |||
[[Category:AI Programming]] | [[Category:AI Programming]] |
Revision as of 12:16, 8 June 2006
To start your NPC, you must create a definition for it first.
Copy npc_New.cpp to a new file related to the classname.
Example: src\dlls\hl2_dll\npc_Barney.cpp
Note the AI_BEGIN_CUSTOM_NPC section. This will be an important section for later steps.