Garry's Mod Wiki

mesh.BoneData

  mesh.BoneData( number index, number matrixId, number weight )

Description

Sets the bone matrix ID and bone weight to be used for the next vertex. See mesh.Begin.

Arguments

1 number index
The slot index for the vertex, either 0 or 1.
2 number matrixId
The matrix index for the vertex, in the range of 0 -> 52. This is the index into IMesh:DrawSkinned's bones argument, minus 1.
3 number weight
How much influence that matrix will have on this vertex, in the range of 0 -> 1.