Garry's Mod Wiki

Revision Difference

Structures/ModelInfo#564474

<structure>⤶ <realm>Shared and Menu</realm>⤶ <description>⤶ Table returned by <page>util.GetModelInfo</page>.⤶ </description>⤶ <fields>⤶ * <page></page> **** - ⤶ * <page></page> **** - ⤶ * <page></page> **** - ⤶ * <page></page> **** - ⤶ * <page></page> **** - ⤶ ⤶ <item name="SkinCount" type="number">Identical to <page>Entity:SkinCount</page>.</item>⤶ ⤶ <item name="KeyValues" type="string">Valve key-value formatted info about the model's physics (Constraint Info, etc). This is limited to 4096 characters.⤶ ⤶ This data can be parsed into a Lua table via <page>util.KeyValuesToTablePreserveOrder</page></item>⤶ <item name="ModelKeyValues" type="string">Valve key-value formatted info about the model (`$keyvalues` command in the `.qc` of the model), if present. ⤶ ⤶ Can describe things like health of a prop, flammability, etc.</item>⤶ ⤶ <item name="MeshCount" type="number">Number of meshes the model has. This could be 0 for animation only models.</item>⤶ <item name="BoneCount" type="number">Number of bones the model has.</item>⤶ ⤶ <item name="Flags" type="number">Model flags. See [this page on Valve Developer Wiki](https://developer.valvesoftware.com/wiki/MDL#Model_flags) for explanation of each one.</item>⤶ ⤶ ⤶ <item name="StaticProp" type="boolean">Whether the model is meant to be a static prop (checks a specific model flag)</item>⤶ ⤶ </fields>⤶ ⤶ </structure>⤶ ⤶