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://gtm.you1.cn/sharedfiles/filedetails/?id=1704304807

other NPCs:

https://gtm.you1.cn/sharedfiles/filedetails/?id=1590062167
https://gtm.you1.cn/sharedfiles/filedetails/?id=1591587403
https://gtm.you1.cn/sharedfiles/filedetails/?id=1529596696
https://gtm.you1.cn/sharedfiles/filedetails/?id=1432542054
40 Comments
Father Andrew  [author] 15 Sep, 2024 @ 2:37am 
no idea how to help then
Father Andrew  [author] 15 Sep, 2024 @ 2:37am 
very odd
mystery catto 14 Sep, 2024 @ 6:04pm 
thats what I mean
theres no box
Father Andrew  [author] 6 Sep, 2024 @ 2:44am 
the npc should have a tiny thing below it you can select when clicking the "owner" box
mystery catto 5 Sep, 2024 @ 3:44pm 
i cant select an npc
Robert Loxemburg 9 Jul, 2024 @ 12:48pm 
alr thanks
Father Andrew  [author] 9 Jul, 2024 @ 12:43pm 
Read the guide above and actually look at the images.
Robert Loxemburg 9 Jul, 2024 @ 12:39pm 
alr but how do i set the animation it has to detect
Father Andrew  [author] 9 Jul, 2024 @ 12:38pm 
"sequence name" is the event setting you need in pac3
Father Andrew  [author] 9 Jul, 2024 @ 12:37pm 
@Lord Farquad

Its literally the guide you are commenting on; look at the actual pictures