Entity.SetRenderOrigin
From GMod Wiki
Function | |
Syntax | Entity:SetRenderOrigin( Vector vector ) |
Description: | |
Sets the render origin of a entity. | |
Returns: | nil |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.SetRenderOrigin]Entity.SetRenderOrigin [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Sets the render origin of a entity. |
---|---|
Used on | |
Code | function ENT:Draw() self:SetRenderOrigin(Vector(0, 0, 0)); self:DrawModel(); end; |
Output | N/A |
Additional Notes
- Use this instead of Entity.SetPos on client to prevent models lagging behind.