:)
By :|AeoN|: G4MB!T 3 years agohey guys i know this is probably the wrong forum/website to put this..but i cbf going to face punch and they have to many forums...anyways
i recently started to recode a stranded 1.8 fix gamemode. i added snippets from stranded 2 and it all works fine. just a single problem i would be delighted to fix:
i rematerialized the benches (iron copper and stone) as well as the furnaces.
heres a few lines of code from the stone workbench:
function ENT:Initialize() self.Entity:SetModel("models/propswasteland/controlroomdesk001b.mdl") self.Entity:PhysicsInit( SOLIDVPHYSICS ) self.Entity:SetMoveType( MOVETYPEVPHYSICS ) self.Entity:SetSolid( SOLIDVPHYSICS ) self.Entity:setMaterial("models/propwasteland/rockcliff02b") end
then when i run gmod and stuph..when i make the bench i get this error:
entities/gms_stoneworkbench/init.lua:18: attempt to call method 'setMaterial' (a nil value)
ye its a pain...oh ye you might wanna know..its the prop but it has no material.
if i can get this ill just do the same for the other entities.
i got the material from ingame gmod btw like i went to the materials list and did it that way.
my steam account is spudmatic0622 if you wanna help any more. im still learning lua so..and noone will help me and im not learning from tuts..its pure studying :D.