Difference between revisions of "GetScreenWidth"
From King Arthur's Gold Wiki
Shadlington (Talk | contribs) |
Shadlington (Talk | contribs) |
||
Line 6: | Line 6: | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
− | s32 | + | s32 getScreenWidth() |
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Scripting]] | [[Category:Scripting]] | ||
[[Category:Global Functions]] | [[Category:Global Functions]] |
Revision as of 21:52, 6 September 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 getScreenWidth()