Difference between revisions of "Defining the NPC"

From Valve Developer Community
Jump to: navigation, search
 
m (tutbar)
Line 1: Line 1:
To start your NPC, you must create a definition for it first. Copy the file <code>src\dlls\hl2_dll\monster_dummy.cpp</code> to a file related to the classname (i.e. <code>src\dlls\hl2_dll\npc_Barney.cpp</code>).
+
{{npc tut}}
 +
To start your NPC, you must create a definition for it first.
 +
 
 +
Copy the file <code>src\dlls\hl2_dll\monster_dummy.cpp</code> to a file related to the classname.
 +
 
 +
Example: <code>src\dlls\hl2_dll\npc_Barney.cpp</code>
 
[[Category:AI Programming]]
 
[[Category:AI Programming]]

Revision as of 19:01, 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