Game Switcher Scripting Variables
These variables are available in the before reinstall and after reinstall events. They will have values greater than 0 only if the game server is being switched to a new game.
- If the game server is being switched to a new game this value is the current game id.
- If the game server is being switched to a new game this value is the new game id.
Windows batch script
@echo off if %SwitchGameTo% gtr 0 ( echo Switching from game id %SwitchGameFrom% to %SwitchGameTo% )
Linux shell script
if [ "$SwitchGameTo" -gt "0" ]; then echo Switching from game id $SwitchGameFrom to $SwitchGameTo fi
if SwitchGameTo > 0 : Script.WriteToConsole("Switching from game id " + str(SwitchGameFrom) + " to " + str(SwitchGameTo))