Difference between revisions of "TMap.SetMap"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with " '''''procedure SetMap(NewMap: string)''''' NewMap: Name of the map to be loaded ==Description== Tries to change map to '''NewMap'''<br> If the map file is not found, warnin...")
 
(fixed example code and category link)
 
Line 7: Line 7:
 
==Example==
 
==Example==
 
<syntaxhighlight lang="pascal">
 
<syntaxhighlight lang="pascal">
Game.SetMap('ctf_Laos');
+
Map.SetMap('ctf_Laos');
 
</syntaxhighlight>
 
</syntaxhighlight>
  
[[Category:TGame]]
+
[[Category:TMap]]

Latest revision as of 22:49, 3 September 2018

procedure SetMap(NewMap: string)
 NewMap: Name of the map to be loaded

Description

Tries to change map to NewMap
If the map file is not found, warning is being generated and sent to server console.

Example

Map.SetMap('ctf_Laos');