Parts

These functions operate on an integer index which you get from entity.GetParts().

GetParts()

Returns a table of integer indices for all currently cached parts.

  • table of number indices.


getPartPosition(int: index)

Returns: number, number, number - The X, Y, and Z world coordinates.


getPartSize(int: index)

Returns: number, number, number - The X, Y, and Z size.


getPartRotation(int: index)

Returns the part's rotation matrix as a flat table of 9 numbers.


Last updated