Garry's Mod

Garry's Mod

Garry's Mod Stranded
此主題已被鎖定
Crypto 2014 年 6 月 8 日 下午 5: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
< >
目前顯示第 1-4 則留言,共 4
Rubat  [開發人員] 2014 年 6 月 9 日 上午 2:07 
Remove last two lines.
Crypto 2014 年 6 月 9 日 下午 7:31 
wait the does not work was not origanlly in there, sorry for confusion.
Crypto 2014 年 6 月 9 日 下午 7: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 2014 年 6 月 9 日 下午 7:46 
also i tried changing the fridges model with a custom model i had made and got nothing but an error
< >
目前顯示第 1-4 則留言,共 4
每頁顯示: 1530 50