Entity.GetLocalPos
From GMod Wiki
| Function | |
| Syntax | Entity:GetLocalPos( ) |
| Description: | |
| Returns Entity's position relative to it's parent. | |
| Returns: | Vector |
| In Object: | Entity |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.GetLocalPos]Entity.GetLocalPos [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | This will print your local position |
|---|---|
| Used on | |
| Code | print( LocalPlayer():GetLocalPos() ) |
| Output | N/A |
Additional Notes
- Returns the entity's position local to it's parent. If it has no parent, it just returns it's position.