Garry's Mod Wiki

Entity:GetModel

string Entity:GetModel()

Description

Gets the model of given entity.

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.

Returns

1 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.

Page Links


Special Pages


Wikis

?

Render Time: 26ms

Session 0
DB GetPage 3
Generate Html 1
SaveChanges 9
Render Body 0
Render Sidebar 12