Defining the NPC: Difference between revisions
Jump to navigation
Jump to search
m (tutbar) |
mNo edit summary |
||
Line 5: | Line 5: | ||
Example: <code>src\dlls\hl2_dll\npc_Barney.cpp</code> | Example: <code>src\dlls\hl2_dll\npc_Barney.cpp</code> | ||
Once you have created the new file, you should remove the enums at the top as well as the references to them in <code>InitCustomSchedules</code>. | |||
[[Category:AI Programming]] | [[Category:AI Programming]] |
Revision as of 12:04, 8 June 2006
To start your NPC, you must create a definition for it first.
Copy the file src\dlls\hl2_dll\monster_dummy.cpp
to a file related to the classname.
Example: src\dlls\hl2_dll\npc_Barney.cpp
Once you have created the new file, you should remove the enums at the top as well as the references to them in InitCustomSchedules
.