Garry's Mod Wiki

Revision Difference

Structures/BodyGroupData#562778

<structure> <realm>Shared</realm> <description>Table returned by <page>Entity:GetBodyGroups</page>.</description>⤶ <description>⤶ The tables that make up the values of the table returned by <page>Entity:GetBodyGroups</page>.⤶ </description>⤶ <fields> <item name="id" type="number">Index of the body group.</item>⤶ ⤶ <item name="name" type="string">Name of the body group.</item>⤶ ⤶ <item name="num" type="number">Amount of subgroups.</item>⤶ ⤶ <item name="submodels" type="table">A zero-indexed table that is of length _num_ with values being the name of the smd mesh file of the respective body group value.</item> <item name="id" type="number">⤶ The Body Group's ID. ⤶ Body Group IDs start at `0`. </item> ⤶ <item name="name" type="string">⤶ The name of the Body Group.⤶ </item>⤶ ⤶ <item name="num" type="number">⤶ The number of Sub Models in this Body Group, and the length of the `submodels` table.⤶ </item>⤶ ⤶ <item name="submodels" type="table">⤶ A table of the names of the Sub Models within this Body Group. ⤶ Sub Model IDs start at `0`.⤶ </item>⤶ </fields> </structure>