What is the name of the entity to create an NPC?

brisck1

Newbie
Joined
Jul 17, 2003
Messages
483
Reaction score
0
I would have thought this was as straight forward as NPC_Zombie or something similar but im totally stumped.

I know its a total noob question but have patience with me please! :p
 
npc template, if you mean to spawn npc's?

otherwise its just npc_entityname, go through the ent list to see whats available.
 
npc_combine_s for combine soldiers.

If that doesn't work, your Hammer is set up wrong. Make sure it's looking at the halflife2.fgd file and youre not trying to map for CS:S or HL2DM.
 
I'm guessing you created a new mod and are trying to add HL2 content to it ? if that is the case in hammer you need to go to tools>options and select your mod's configuration then under "Game Data files" hit add and select "halflife2.fgd" then you should get a nice long list of entities that you can add, as long as you made a single player mod you should be fine. Another suggestion is you might want to create a custom FGD for your mod, and add that one, as long as it is added after the base.fgd you shouldn't get any errors about missing base types. That way you can have all your entity entries separate from the base.
 
Thanks guys, thanks Cunbelin that is exactly what I have done>created a single player mod. I'll try that tonight! Will It give me a list of npc entities when done?

cheers
 
no actual list they should just appear in the entity pulldown menus. Hit shift-E and you should be able to select a bunch of new entities.
 
ok the only way I could get HL2 entities to apear in my mod was to type them in manually into the Entity name listbox. Doing it this way however gives me an "obsolete entity/jackie chan' Icon and no options. It DOES work once in game however, but at the cost of arkwardness.

I tired Cunbelin's advice of adding the Halflife2.fgd file to the hammer options, but it seems to have no effect when im in my mod. :(
 
Back
Top