Difference between revisions of "TGame.LoadCon"

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

Revision as of 15:35, 23 July 2013

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

Description

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

Example

Game.LoadCon('Teammatch_Config.ini');