Entity.DrawModel
From GMod Wiki
Function | |
Syntax | Entity:DrawModel( ) |
Description: | |
Running this function will draw the model of the attached entity. This can be used in any 3D Rendering Hook. | |
Returns: | nil |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.DrawModel]Entity.DrawModel [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | This is an example of the usage of DrawModel in a scripted entity. |
---|---|
Used on | |
Code | function ENT:Draw() self:DrawModel() end |
Output | N/A |
Additional Notes
- This is used in scripted entities to draw the model.
- By changing the world matrix or moving the camera, where the model is drawn can be changed. Other effects like changing the render material can be done beforehand which change the way the model is drawn. Using tricks like these you can change the way the model is drawn.