Data Dictionary

A data dictionary is a list of all variables and what they stand for

Global Data

NameDescription
lobbyLocationLocation of the main lobby where the players select their team
careerLocationLocation where the players select their career (fighter or bomber)
blueDefendersA list of locations where there is an air defense structure that targets red players
redDefendersA list of locations where there is an air defense structure that targets blue players
redBedLocation of the red bed, this is also the spawn point for a red player when they have selected a career
blueBedLocation of the blue bed, this is also the spawn point for the blue player when they have selected a career
spawnPointsProtected areas which cannot be bombed. They are the locations of the signs which allow players to select team and career
capturePointsList of flags which can be captured by either team

This code will set the locations for the bed/air wars(Your locations will be different)


The reload event will also set the global variable:
NameDescription
gameIdCurrent time when the server finishes its reload. Each player will have a gameId that is set to the global gameId when they are playing. If their gameId does not match the global gameId, this means that the server has started a new game, since the player last connected. When this occurs the player is sent to the lobby to select a team.