Garry's Mod

Garry's Mod

Garry's Mod Stranded
Toto téma bylo uzamčeno
Add more weapons
you dont have to add weapons but could you explain how i could? i went into the combinations.lua and wrote this

local COMBI = {}

COMBI.Name = "Iron_Sword"
COMBI.Description = "This highly advanced, effective melee weapon is useful for hunting down animals and fellow stranded alike."
COMBI.Entity = "gms_ironworkbench"

COMBI.Req = {}
COMBI.Req["Iron"] = 1


COMBI.SkillReq = {}
COMBI.SkillReq["Weapon_Crafting"] = 1
COMBI.SkillReq["Hunting"] = 1

COMBI.Texture = "gms_icons/gms_weapon.png"
COMBI.SwepClass = "weapon_firesword"

GMS.RegisterCombi( COMBI, "gms_ironworkbench" )


SWEP.ViewModel = "models/weapons/v_gaywbar.mdl"
SWEP.WorldModel = "models/weapons/w_gaywbar.mdl"

input:18: attempt to index global 'SWEP' not nil



Does not work WARNING
< >
Zobrazuje se 14 z 4 komentářů
Rubat  [vývojář] 9. čvn. 2014 v 2.07 
Remove last two lines.
wait the does not work was not origanlly in there, sorry for confusion.
[ERROR] gamemodes/gmstraned/gamemode/combinations.lua:1839: attempt global 'SWEP' <a nil value>





(not apart of error)




line 1839 would be this

SWEP.ViewModel = "models/weapons/v_gaywbar.mdl"
also i tried changing the fridges model with a custom model i had made and got nothing but an error
< >
Zobrazuje se 14 z 4 komentářů
Na stránku: 1530 50