• What's the best way to make NPCs that attack players?
    0 replies, posted
Right now I'm using this code, but he only follows and attacks the player after he sees him. [code] local ent = ents.Create( "npc_metropolice" ) ent:SetPos( cop_spawn_locations[1] ) ent:SetKeyValue( "additionalequipment", "weapon_stunstick" ) ent:AddEntityRelationship( player.GetByID( 1 ), D_HT, 99 ) ent:Spawn() [/code] I want to have an NPC that will actively seek out and kill the player wherever he is. What's the best way to do this? Do the HL2 NPCs have code for this or do I have to make a new custom SNPC/Nextbot?
Sorry, you need to Log In to post a reply to this thread.