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
< >
전체 댓글 4개 중 1~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
< >
전체 댓글 4개 중 1~4개 표시 중
페이지당 표시 개수: 1530 50