From Garry's Mod
Revision as of 20:08, 24 June 2019 by Code gs (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 Entity:SetModelScale( )



Scales the model of the entity, if the entity is a Player or an NPC the hitboxes will be scaled as well.

For some entities, calling Entity:Activate after this will scale the collision bounds and PhysObj as well; be wary as there's no optimization being done internally and highly complex collision models might crash the server.

This is the same system used in TF2 for the Mann Vs Machine robots.

To resize the entity along any axis, use Entity:EnableMatrix instead.

If your old scales are wrong due to a recent update, use Entity:SetLegacyTransform as a quick fix.


The hull does not scale properly with this function.

Issue Tracker: #2193


This does not scale procedural bones and disables IK.

Issue Tracker: #3502


number scale

A float to scale the model by. 0 will not draw anything. < 0 will draw the model inverted.


number deltaTime=0

Transition time of the scale change, set to 0 to modify the scale right away.



From the "Biggify" option of right clicking an npc

ent:SetModelScale( ent:GetModelScale() * 1.25, 1 )

Personal tools