Difference between revisions of "TGame.LoadCon"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with " '''''function LoadCon(ConfigFile: string): Boolean''''' ConfigFile: path to config file Result: if it worked or not ==Description== Changes game configuration<br> Players...")
 
m (Description: Clarity for not kicking players when unsuccessfully loaded configuration)
 
(3 intermediate revisions by one other user not shown)
Line 4: Line 4:
 
==Description==
 
==Description==
 
Changes game configuration<br>
 
Changes game configuration<br>
Players are kicked when executed
+
Returns true if configuration has been loaded, false otherwise<br>
Returns true if configuration has been loaded, false otherwise
+
Players are kicked when executed if configuration successfully loaded<br>
 +
LoadCon is '''not available''' with [[LockedMode|Locked Mode]] ON (according to SoldatServer ReadMe.txt)
  
 
==Example==
 
==Example==

Latest revision as of 15:41, 29 July 2013

function LoadCon(ConfigFile: string): Boolean
 ConfigFile: path to config file
 Result: if it worked or not

Description

Changes game configuration
Returns true if configuration has been loaded, false otherwise
Players are kicked when executed if configuration successfully loaded
LoadCon is not available with Locked Mode ON (according to SoldatServer ReadMe.txt)

Example

Game.LoadCon('Teammatch_Config.ini');