In the project I'm working on I need a certain NPC to not collide with a tree (it's actually the branches but the collision model covers the whole tree).
How would I go about doing this?
Also, how do I make him ignore the player?
I've done it in the past but I can't remember how I did it.
Perhaps it would be best to make the tree have no collisions and use playerclip?
You can exclude npc collisions in a func_brush. Make one with nodraw or set it not to render, place in the model, exclude the model's collision, and set the npc name/class on the func_brush.
Ok, I'll try it now.
What's the output to make an NPC follow a series of path_corners?
[editline]07:00PM[/editline]
It's startscripting.
[editline]07:17PM[/editline]
[QUOTE=kukiric;19686255]You can exclude npc collisions in a func_brush. Make one with nodraw or set it not to render, place in the model, exclude the model's collision, and set the npc name/class on the func_brush.[/QUOTE]
Can you explain how you would do this in more detail, please.
I'm a little lost.
Do you still need him to ignore the player? Because for that you'd use an ai_relationship and logic_auto. Name the NPC, then set the ai_relationship to set him to "Neutral" or "like" towards "!player", and have the logic_auto activate it on map spawn. Actually there may be a property or flag on the ai_relatioship to make it start active but I can't remember right now.
Thankyou laharlsblade (?), that's worked perfectly :buddy:
Sorry, you need to Log In to post a reply to this thread.