Bitfighter
021
The Bitfighter Lua Documentation - Robots, Levelgens, and Plugins
|
Get information about the current game.
Member Functions | |
getEventScore(event) | |
Get the value of a ScoringEvent. | |
getFlagCount() | |
Get the number of flags in play. [details] | |
getGameTimeRemaining() | |
Get the number of seconds until the game ends. [details] | |
getGameTimeTotal() | |
Get the initial time limit of the game in seconds. [details] | |
getGameType() | |
Get the GameType of the current game. [details] | |
getGameTypeName() | |
Get a string representing the name of the game type. [details] | |
getLeadingScore() | |
Get the highest score among all teams. [details] | |
getLeadingTeam() | |
Get the index of the team with the highest score. [details] | |
getLevelName() | |
Get a string representing the level's name. [details] | |
getNexusTimeLeft() | |
The number of seconds until the nexus opens or closes. [details] | |
getPlayers() | |
Get a list of the players in the game. [details] | |
getTeam(teamIndex) | |
Get a Team by index. [details] | |
getTeamCount() | |
Get the number of teams in the game. [details] | |
getWinningScore() | |
Get the winning score. [details] | |
isNexusOpen() | |
Get whether the nexus is open. [details] | |
isTeamGame() | |
Get information about the current game.
You can get information about the current game with the GameInfo object. You only need get this object once, then you can use it as often as you like. It will always reflect the latest data. You can get this object with bf:getGameInfo()
(see ScriptRunner::getGameInfo()).
Arg types: event: ScoringEvent | returns int |
Get the value of a ScoringEvent.
event
occurs, or zero if an unknown event is specified. returns int |
Get the number of flags in play.
returns int |
Get the number of seconds until the game ends.
returns int |
Get the initial time limit of the game in seconds.
returns GameType |
Get the GameType of the current game.
For possible values, see GameType.
returns string |
Get a string representing the name of the game type.
returns int |
Get the highest score among all teams.
returns int |
Get the index of the team with the highest score.
returns string |
Get a string representing the level's name.
returns int |
The number of seconds until the nexus opens or closes.
returns table |
Get a list of the players in the game.
Arg types: teamIndex: int | returns Team |
returns int |
Get the number of teams in the game.
returns int |
Get the winning score.
returns bool |
Get whether the nexus is open.
true
if the Nexus is open during a Nexus game. returns bool |
true
if there is more than one team.