Garry's Mod Wiki

Entity:GetSubModels

  table Entity:GetSubModels()

Description

Returns a list of models included into the entity's model in the .qc file.

Returns

1 table
The list of models included into the entity's model in the .qc file.

Example

Example structure of the table. Prints into console sub models of a player model.

Output:
1: name = models/m_anm.mdl id = 0