Entity.SetModelScale

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:SetModelScale( Vector scale )
Description:
Sets the scale to scale the model as.
Returns: nil
In Object: Entity
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.SetModelScale]Entity.SetModelScale [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis will select all players and make their models smaller.
Used onNewerClient.png
Code
 
for _, ply in pairs(player.GetAll()) do
	ply:SetModelScale(Vector(0.5, 0.5, 0.5))
end
OutputThis will set all model sizes to half as big. This will only affect the client.


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox