Entity.SetModelWorldScale
From GMod Wiki
| Function | |
| Syntax | Entity:SetModelWorldScale( Vector scale ) |
| Description: | |
| Sets the scale to scale the model as. | |
| Returns: | nil |
| In Object: | Entity |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.SetModelWorldScale]Entity.SetModelWorldScale [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | This will make all props in the map look smaller. |
|---|---|
| Used on | |
| Code | for k,v in pairs(ents.FindByClass("prop_physics")) do v:SetModelWorldScale(Vector(0.5,0.5,0.5)) end |
| Output | N/A |
Additional Notes
- This scale will scale in world coords, so z will always be up/down, even if the entity is rotated.