Garry's Mod

Garry's Mod

Garry's Mod Stranded
Dette emnet er blitt låst
Crypto 8. juni 2014 kl. 17.25
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
< >
Viser 14 av 4 kommentarer
Rubat  [utvikler] 9. juni 2014 kl. 2.07 
Remove last two lines.
Crypto 9. juni 2014 kl. 19.31 
wait the does not work was not origanlly in there, sorry for confusion.
Crypto 9. juni 2014 kl. 19.42 
[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"
Crypto 9. juni 2014 kl. 19.46 
also i tried changing the fridges model with a custom model i had made and got nothing but an error
< >
Viser 14 av 4 kommentarer
Per side: 1530 50