Entity.GetModelScale

From GMod Wiki

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



Examples

DescriptionMakes your character smaller by 0.5.
Used onNewerClient.png
Code
LocalPlayer():SetModelScale(Vector(0.5, 0.5, 0.5))
print("Your Model Scale is " .. tostring(LocalPlayer():GetModelScale()))
OutputYour Model Scale is 0.5000 0.5000 0.5000
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox