Question Regarding NPC Settings

S

Savage Spartan

Guest
I am sure this is possible to do but how...

I want to spawn/make a Vortigaunt in my map and make him a enemy isntead of ally. So when I load the map and I get to the Vortigaunt, he attacks me that is possible with SDK I assume correct? If so, how do I do it step by step if its not to complicated? Is it possible to make Zombies as allies instead of enemies? That' be kind of cool.
 
Pretty sure you just need the add the npc_vortigaunt and make an ai_relationship to hate the player. Though I am pretty sure he will own your face with his lightning attacks, and you might want to lower his health because I think they, like citiziens, have like 3000 HP.
 
how do I do that? I found the entity ai_relationship but what do I do with it and how do i link it to npc_vortigaunt?
 
Search the forum, I'm sure someone has answered how to set an ai_relationship before. If not, look at the Valve Developer wiki.
 
Just look at the settings.

For who it should apply to just add npc_vortigaunt and then set the relationship to "hate". The object he should hate should simply be "player". And then set it to start active. No need to mirror the relationship since target is a player...
 
Back
Top