Entity/GetSubModels

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Added required arguments and type of returned value)
 
Line 2: Line 2:
 
|Name=GetSubModels
 
|Name=GetSubModels
 
|Parent=Entity
 
|Parent=Entity
 +
|Description=Returns a list of models included into the entity's model in the .qc file.
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=Yes
 
|IsClass=Yes
Line 7: Line 8:
 
{{Ret
 
{{Ret
 
|type=table
 
|type=table
 +
|desc=The list of models included into the entity's model in the .qc file.
 +
}}
 +
{{Example
 +
|Description=Example structure of the  table. Prints into console sub models of a player model.
 +
|Code=PrintTable(Entity(1):GetSubModels() )
 +
|Output=<pre>
 +
1:
 +
name = models/m_anm.mdl
 +
id = 0
 +
</pre>
 
}}
 
}}

Latest revision as of 17:06, 13 May 2014

 Entity:GetSubModels( )

Contents

Description

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

Returns

table

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

Examples

Example

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

PrintTable(Entity(1):GetSubModels() )

Output:

1:
		name	=	models/m_anm.mdl
		id	=	0
Personal tools
Navigation