• Adding Custom
    7 replies, posted
I was wondering, since I've noticed there is a way to make a NPC class, how might I define things for it while coding it, like for example let's say I make an NPC class zomb_survivor_cop, how would I set it to hate the zombie class?
[b][url=http://wiki.garrysmod.com/?title=NPC.AddEntityRelationship]NPC.AddEntityRelationship [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
Well how do I do it for something other then the player? :/
Use that entity instead...
[QUOTE=SeveredSkull;22631535]Use that entity instead...[/QUOTE] No, what I meant is that when it is spawned from the NPC Menu how do I make it hate and therefore attack zombies instead of fearing and running from them? >_>
Find the hook that gets called when an npc is created and add the relationship then.
...I'll try :/
[b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSpawnedNPC]Gamemode.PlayerSpawnedNPC [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] Enjoy.
Sorry, you need to Log In to post a reply to this thread.