gui.ScreenToVector

From GMod Wiki

Jump to: navigation, search
Function
Syntax gui.ScreenToVector( Integer x, Integer y )
Description:
Converts the specified screen position to a vector.
Returns: Vector
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Gui.ScreenToVector]Gui.ScreenToVector [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionThis will convert the mouse position to a vector and print it.
Used onNewerClient.png
Code
print( gui.ScreenToVector( gui.MousePos() ) ) 
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox