VMatrix.Scale

From GMod Wiki

Jump to: navigation, search
Function
Syntax VMatrix:Scale( Vector scale )
Where is this used?
Description:
Scales the matrix by the specified vector.
Returns: nil
Part of Library: VMatrix
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=VMatrix.Scale]VMatrix.Scale [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionDoubles the size of a ragdolls head.
Used onNewerClient.png
Code
local matr = ent:GetBoneMatrix(6) //6 is the head
matr:Scale(Vector(2, 2, 2)) //Scale it by 2 on each axis.
ent:SetBoneMatrix(6, matr)
OutputThe ragdoll now has twice the size of it's head.


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox