Gmod 10 Npc Tutorial Difficulty: Beginner |
| Category: Gmod > Other/Misc | Author(s): bountyhunter219 |

HAI
FIRST, GET THIS
http://sourceforge.net/project/downloading.php?group_id=95717&use_mirror=internap&filename=npp.5.0.3.src.zip&86319417
and get this:
http://nemesis.thewavelength.net/index.php?p=26
ok, first open up notepad++ (the first download thing)
you can use regular notepad, but i suggest notepad ++
alright
click file > new
you will see a blank document
type this:
local Category = "INSERT NAME HERE"
where it says insert name here, put your category, it doesn't really matter, as long as you have something there, if you plan on releasing it, i would name it something having to do with your npc's, not something like: "My new npcs! :D"
ok, now, go down 2 lines, and type this:
local NPC = { Name = "INSERT NAME HERE",
make sure you include the , or else it will EPIC PHAIL
now, this part you will need to refer to picture 1:
ok, after you typed that, go to a next line, and press tab 4 times
now put this:
Class = "INSERT NPC NAME HERE",
ok, this defines what kind of npc it is, the npcs you might like are:
npc_citizen
npc_zombie
npc_zombie_fast
npc_metropolice
any npc name that doesnt exist such as: "JERRY! HURRRR!"
will phail
now, once again, skip a line, press tab 4 times, and put this:
Model = "MODEL NAME HERE",
now, go to your steam directory
if you installed it on your c drive it should be:
c:/Program Files/steam/steamapps/
and look for either source models, or garrysmod content
open it up, and look for the models folder
open THAT up.
make sure you get a ragdoll that is used in half-life 2, such as
gman
kleiner
metro cop
alyx
zombie
etc.
if you use garrysmod, a majority of the ragdolls will be in models/player
YOU MUST PUT .MDL AT THE END OR YOU WILL
PHAIL
now,
skip a line, 4 tabs, type this
Health = "150",
by default it should be 150 for a citizen
now, if you used npc_citizen, which i highly suggest you do, then type this:
KeyValues = { citizentype = 4 },
this defines which citizen it will be, by my count, there are 32 citizens, and 1 that works, which is this one
DO NOT CHANGE THE NUMBER 4
sorry, its a girl
now, almost done, skip a line, 4 tabs, type this
Category = Category }
i dont really know what this does, but apparently, its important...
good, now, for the piece de something something,
skip 3 lines, type this:
list.Set( "NPC", "npc_NPCNAMEHERE", NPC )
DO NOT PRESS TAB 4 TIMES FOR THAT ONE
now, name this file whatever you want, i would put your name in it, so its unique, so it doesnt overwrite someone elses npcs
now, before you save it, save it ass all files, and put .lua at the end
save it in lua/autorun in your garrysmod folder
whats that? dont have an autorun folder?
MAKE ONE, IDIOT
le fin |
| Added: 2 months ago | Tags: gmod, garrys mod, garrys, mod, 10, lua, npc, script |
 Add Feedback Feedback Instructions: Say whatever you want You cannot post yet!Get involved on FPSB by posting your thoughts. Give authors your feedback to help them develop. To post in this submission register or login. |
 You cannot assess yet!Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure. To vote on this submission register or login. This Tutorial in a nutshell... Poor Spelling & Confusing 1 x Poor Spelling 1 x Confusing You cannot stamp yet!Stamps let you apply characteristics to submissions to help others understand them. To stamp this submission register or login. Want more? Find related tuts. |