• Resize Props
    3 replies, posted
how would I resize an entity in lua? I am trying to make something, I have the right prop, it's just too big for the entity I want to make. How would resize it?
[url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index1156.html?title=Entity.SetCollisionBounds[/url] [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexcdfe.html?title=Entity.SetModelScale[/url] I wouldn't recommend it though. There might be glitches.
How would i make the SetModelScale and SetCollisionBounds be the same? Because one runs relative to the model and the other runs absolute.
Well, GetCollisionBounds is a function that gets you the original collision bounds; compare its magnitude to that of what you're setting it to and set the model scale according to that.
Sorry, you need to Log In to post a reply to this thread.