Garry's Mod

Garry's Mod

Not enough ratings
HOW TO ADD ANY OBJECT TO THE SENT BUILDER SWEP
By Flamming
NOT MY ADDON!
if the og creator of this mod wants me to take this down i will :D
   
Award
Favorite
Favorited
Unfavorite
step by step on what to do!
for anyone who is wondering how to add your own entities, it is pretty easy but you gotta get your hands dirty!

1. go to: C:\Program Files (x86)\Steam\steamapps\workshop\content\4000\2956538698
2. use GWTools or GMPublisher to extract the GMA file
3. open the extracted folder and go to and open with like vscode or something: lua/weapons/weapon_builder
4. in that code copy and paste into the Builder_EntitiesTBL table: [ "EXAMPLE" ] = { cost = COST, Name = "EXAMPLE", PrintName = "NAME", mdl = "MODEL"}
5. replace EXAMPLE with the path to your ent, npc, or anything else (example: "npc_gman")
6. replace NAME with the name of your object (example: "Gman")
7. replace MODEL with the model of your object (example: "models/gman.mdl") -- you can find in spawnmenu/spawnlist and scroll down to addons or whatever folder your model is in
8. replace COST with how many swings you want your object to cost (example: "100")
9. press CTRL + S to save your file
10. exit your code editor and drag and drop your custom sent_builder_swep folder into C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\addons
11. exit gmod and open gmod again
12. go to spawnmenu/weapons/other and your sent swep is there!
(MAKE SURE TO UNINSTALL THIS ADDON SO IT WORKS!!!)

:steamhappy:

edit:
just realized the modder has this in the code if it helps anyone!

--[[ -- put this into the entity code you want to become buildable

Builder_AddClass("sent_mysent", {
PrintName = ENT.PrintName,
Name = "sent_mysent", -- our class name
mdl = "models/resident_evil/t-virus_vial_shattered.mdl", -- our in construction model
cost = 25 -- ammount of hammer swings
})

]]
2 Comments
Flamming  [author] 19 Aug @ 2:02pm 
no problem!
Lil'Moon 17 Aug @ 9:12pm 
本当に助かりました、ありがとうございます!