Entity/GetSubModels

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Func |Name=GetSubModels |Parent=Entity |Description= |Realm=Shared |IsClass=Yes }}")
 
 
(One intermediate revision by one user not shown)
Line 2: Line 2:
 
|Name=GetSubModels
 
|Name=GetSubModels
 
|Parent=Entity
 
|Parent=Entity
|Description=
+
|Description=Returns a list of models included into the entity's model in the .qc file.
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=Yes
 
|IsClass=Yes
 +
}}
 +
{{Ret
 +
|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