Garry's Mod

Garry's Mod

Not enough ratings
How to make a custom NPC using PAC3 (text version)
By Father Andrew
This guide will teach you how to make custom NPCs in Garry's Mod using PAC3
   
Award
Favorite
Favorited
Unfavorite
Requirements
Firstly, to start making an NPC you need a few things:

1. choose an NPC or entity that is compatible with PAC3 and the duplicator with the desired traits

2. PAC3 and the addon with the NPC or Entity that you have chosen needs to be INSTALLED and ENABLED or this won't be possible as the needed stuff will be missing

Step 1. Preparation
hold C and disable thinking for an easier time, then spawn the desired NPC, then hold C again and look for the PAC3 editor and when you find it, click to open the PAC3 editor



















Step 2. making the PAC3
Set the owner name of the PAC3 to the NPC by clicking the small box next to the name area and clicking the name of the NPC, then right click the group and add an animation, then set that animation to, for example: "Ragdoll"

Then right click the group and add a model, then set the model to whatever NPC or character you want, then right click the model and add an animation to it

After that, add a event and set it to "sequence name", after that copy the name of the NPCs animation (the one you set it to) and place it into the "find" area at the bottom and then you need to click the invert option on the event for it to work properly

also make sure that "owner cycle" is enabled on the animation of the model as well













if everything works the thing that animates should respond with its selected animation whenever the NPC its linked to does the animation you chose

in the end you should get something that resembles this

in this one, i set the zombies run animation to trigger when the brute did its "run_walk" animation

step 3. fully using this method
Use this method multiple times on the same model in the PAC3 but with different triggers so that it can have other animations for whatever you have planned but do note that you need one for almost every animation or else the model won't move and will look strange, but do note that not every animation gets used so you may not need to use all the models animations.

here are several NPCs i made myself that you can look into for help and examples and a custom made example NPC for you to see how it works

custom example NPC:

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1704304807

other NPCs:

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1590062167
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1591587403
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1529596696
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1432542054
46 Comments
Nikolay 12 Jul @ 4:51am 
Can someone make video tutorial? I cant understand some things.
Father Andrew  [author] 31 Mar @ 6:50am 
I am unsure; maybe the "entity" part has a mute sound button
Funny Engineer 31 Mar @ 6:49am 
is it possible to mute npc sounds
Мр.Фримλн 5 Feb @ 7:36am 
thx fam
Father Andrew  [author] 5 Feb @ 7:05am 
the asset browser comes with pac3
Father Andrew  [author] 5 Feb @ 7:04am 
PAC3
Мр.Фримλн 5 Feb @ 5:19am 
What is the name of this "Asset Browser" addon??
Father Andrew  [author] 15 Sep, 2024 @ 2:37am 
no idea how to help then
Father Andrew  [author] 15 Sep, 2024 @ 2:37am 
very odd
mysterycatto 14 Sep, 2024 @ 6:04pm 
thats what I mean
theres no box