Entity/EnableMatrix

From Garry's Mod
Jump to: navigation, search
Entity:EnableMatrix( )

Contents

Description

Can be used to scale a model by a vector

Arguments

string matrixType

The name of the matrix type.
The only known matrix type is "RenderMultiply".

Arguments

VMatrix matrix

The matrix to apply before drawing the entity.

Examples

Example

To scale a prop's height by 4x

local scale = Vector(1,1,4)

local mat = Matrix()
mat:Scale(scale)
prop:EnableMatrix("RenderMultiply", mat)


Personal tools
Navigation