Game Switcher Scripting Variables

From TCAdmin 2.0 Documentation

These variables are available in the before game switch and after game switch events.

SwitchGameFrom
If the game server is being switched to a new game this value is the current game id.
SwitchGameTo
If the game server is being switched to a new game this value is the new game id.

Examples

Windows batch script

@echo off
echo Switching from game id %SwitchGameFrom% to %SwitchGameTo%

Linux shell script

echo Switching from game id $SwitchGameFrom to $SwitchGameTo

IronPython script

 Script.WriteToConsole("Switching from game id " + str(SwitchGameFrom) + " to " + str(SwitchGameTo))
Retrieved from "https://help.tcadmin.com/index.php?title=Game_Switcher_Scripting_Variables&oldid=2509"