I was just wondering if I could change the material of the world model, without making a whole new model.
Could I do something like this?
[CODE]
GetWorldModel():SetMaterial("example")
[/CODE]
Sorry if that is horrible, I am a lua noobie here. :p
[code]
if CLIENT then
function SWEP:DrawWorldModel()
if not self.Owner or not IsValid(self.Owner) or self.Owner != LocalPlayer() then
if not self.set then self.set = true self:SetMaterial('materialhere') end
self:DrawModel()
end
end
end
end[/code]
Sorry, you need to Log In to post a reply to this thread.