Source SDK

Source SDK

How do I make specific NPCs follow the player?
I'm making test maps for my new singleplayer mod, and Alyx, Barney, and Father Grigori don't follow the player. How do I fix this?
< >
Showing 1-8 of 8 comments
Matt Dec 12, 2019 @ 6:29pm 
ai_goal_follow

Here's[i.imgur.com] one I used for an old map. The Formation I used was one that alyx uses in ep2.
Last edited by Matt; Dec 12, 2019 @ 6:29pm
BUTTERDOGESTARWARS Dec 14, 2019 @ 12:42pm 
Originally posted by M4tt:
ai_goal_follow

Here's[i.imgur.com] one I used for an old map. The Formation I used was one that alyx uses in ep2.
It's still not working
Matt Dec 14, 2019 @ 7:20pm 
Could you provide more detail? That doesn't help me resolve your issue.
I put all of the settings in correctly and the NPC is still not following the player
Matt Dec 15, 2019 @ 11:15am 
Adding more words to a sentence doesn't necessarily add more detail. Could you provide a screenshot or a vmf? Maybe even a compile log.
I was didn't type in the right name in the right name for the NPC in one of the boxes, I just got it to work.
Originally posted by Matt:
ai_goal_follow

Here's[i.imgur.com] one I used for an old map. The Formation I used was one that alyx uses in ep2.
hi man, since you helpped this other commenter i thought maybe you may be willing to try and help me work somehting out here. im trying to spicificly get a spawned alyx with a gun to follow me like regular ally npc's so far iv mannaged to work out how to spawn her in wiht the gun i want, but not get her to follow, so far what works is first typing in "npc_create_equipment weapon_pistol" this sets the weapon of the npc's i will spawn then type "npc_create npc_alyx" which spawns her in, but now what text should i add to the current line or do i type a new seporate line of text to get her to follow??? i feel im close to getting this to work im just missing somehting thats probbaly very obvious to someone experianced with coding.
bro that was over 5 years ago
< >
Showing 1-8 of 8 comments
Per page: 1530 50