server_settings.Int
From GMod Wiki
Revision as of 14:59, 13 September 2009 by UnrealomegaBot (Talk | contribs)
Function | |
Syntax |
server_settings.Int( String name, Integer default ) Where is this used? |
Description: | |
Returns the value of the named variable, or default if it doesn't exist. | |
Returns: | Integer |
Part of Library: | server_settings |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Server settings.Int]Server settings.Int [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Returns the server's gravity setting, or an unlikely value if it doesn't exist. |
---|---|
Used on | |
Code | local gravity = server_settings.Int( "sv_gravity", -1000000 ); |
Output | N/A |
Additional Notes
N/A