Entity/GetModel

From Garry's Mod
Jump to: navigation, search
 Entity:GetModel( )

Description

Gets the model of given entity.

BUG

This does not necessarily return the model's path, as is the case for brush and virtual models. This is intentional behaviour, however, there is currently no way to retrieve the actual file path.

Issue Tracker: #2246

Returns

string

The entity's model. Will be a filesystem path for most models.

This will be nil for entities which cannot have models, such as point entities.
Personal tools
Navigation