surface.ScreenHeight

From GMod Wiki

Jump to: navigation, search
Function
Syntax surface.ScreenHeight( )
Where is this used?
Description:
This function returns the screen height if the game is fullscreen, or returns the interior height of the user's game window if the game is windowed.
Returns: Integer
Part of Library: surface
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Surface.ScreenHeight]Surface.ScreenHeight [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionGets the local client's screen height, same as ScrH()
Used onNewerClient.png
Code
height = surface.ScreenHeight()
OutputScreen height.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox