• Changing size of an entity
    4 replies, posted
I am looking for a function or a way to change an entity's size without altering the model . I have looked on the wiki and can't seem to find anything. Is there such a thing? Thanks
ent:SetScale(0.5) i think...
Thanks, I'll try it now. :) Edit - Doesn't seem to work : [code] [gamemodes\levels-darkrp\entities\entities\jumbo_money_printer\init.lua:12] attempt to call method 'SetScale' (a nil value) [/code]
It's Entity:SetModelScale(Vector(x, y, z)) it's a clientisde function so wrap it in ENT:Draw function
[QUOTE=Loures;26850178]It's Entity:SetModelScale(Vector(x, y, z)) it's a clientisde function so wrap it in ENT:Draw function[/QUOTE] You also have to SetRenderBounds(vec,vec) otherwise the model will not be rendered when the "normal" model wouldn't be visible. And it does NOT scale the collision model.
Sorry, you need to Log In to post a reply to this thread.