Garry's Mod Wiki

Revision Difference

Entity:GetModel#515447

<function name="GetModel" parent="Entity" type="classfunc">⤶ <description>⤶ Gets the model of given entity.⤶ ⤶ <bug issue="2246">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.</bug>⤶ </description>⤶ <realm>Shared</realm>⤶ <rets>⤶ <ret name="" type="string">The entity's model. Will be a filesystem path for most models.⤶ ⤶ This will be <page>nil</page> for entities which cannot have models, such as point entities.</ret>⤶ </rets>⤶ </function>⤶ ⤶