Garry's Mod Wiki

mesh.BoneData

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

Recently Added

This was recently added in version (2026.02.25). It might only be available on the Dev Branch right now.

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.