Vector.ToScreen
From GMod Wiki
| Function | |
| Syntax | Vector:ToScreen( ) |
| Description: | |
| Returns the draw position on the screen for a position in space. | |
| Returns: | Table |
| In Object: | Vector |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Vector.ToScreen]Vector.ToScreen [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Additional Notes
- A table with three elements is returned, "x", "y" and "visible".
- This assumes you want to use the local player's screen, with the local player's camera. A version of this function that can be used with a custom screen / camera can be found here.