Entity.SetModelWorldScale

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:SetModelWorldScale( 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.SetModelWorldScale]Entity.SetModelWorldScale [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionThis will make all props in the map look smaller.
Used onNewerClient.png
Code
for k,v in pairs(ents.FindByClass("prop_physics")) do
    v:SetModelWorldScale(Vector(0.5,0.5,0.5))
end
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox