Difference between revisions of "GetScreenWidth"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "<onlyinclude> Returns the screen width as an integer (s32). </onlyinclude> <syntaxhighlight lang="cpp"> s32 ScreenWidth() </syntaxhighlight> Category:Scripting [[Category:Gl...")
 
Line 2: Line 2:
 
Returns the screen width as an integer (s32).
 
Returns the screen width as an integer (s32).
 
</onlyinclude>
 
</onlyinclude>
 +
 +
This is client only - it should be wrapped in "if ( getNet().isClient() )" or be in a client-only script.
 +
 
<syntaxhighlight lang="cpp">
 
<syntaxhighlight lang="cpp">
 
s32 ScreenWidth()
 
s32 ScreenWidth()

Revision as of 14:00, 28 August 2012

Returns the screen width as an integer (s32).


This is client only - it should be wrapped in "if ( getNet().isClient() )" or be in a client-only script.

s32 ScreenWidth()