Difference between revisions of "TGame.LoadCon"

From Soldat Community Wiki
Jump to: navigation, search
m (Description)
m (Description: Clarity for not kicking players when unsuccessfully loaded configuration)
 
Line 4: Line 4:
 
==Description==
 
==Description==
 
Changes game configuration<br>
 
Changes game configuration<br>
Players are kicked when executed<br>
 
 
Returns true if configuration has been loaded, false otherwise<br>
 
Returns true if configuration has been loaded, false otherwise<br>
 +
Players are kicked when executed if configuration successfully loaded<br>
 
LoadCon is '''not available''' with [[LockedMode|Locked Mode]] ON (according to SoldatServer ReadMe.txt)
 
LoadCon is '''not available''' with [[LockedMode|Locked Mode]] ON (according to SoldatServer ReadMe.txt)
  

Latest revision as of 16: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');