api.game exists in every game, but what’s inside is totally different per game:
- Bloxstrike: the bomb (plant, defuse, explode), hostages, the gamemode, dropped items, grenades, and buys.
- Rivals: match status, environment, placeables, and grenades.
- Apocalypse Rising 2: world pings, your squad, and zombies (your inventory lives on
api.client). - Phantom Forces: match state, rounds, dropped weapons, and live grenades.
- Overkill: match and team state, matchmaking, and live projectiles.
- Murderers vs Sheriffs Duels: match and team state.
if api.game.getBomb then, or the Rivals equivalent). See Game support.
Bloxstrike
Bomb plant lifecycle, hostages, gamemode, dropped items, buys.
Rivals
Match status, environment, placeables.
Apocalypse Rising 2
World pings, squad, zombies.
Phantom Forces
Match state, rounds, dropped weapons, grenades.
Overkill
Match and team state, matchmaking, projectiles.
Murderers vs Sheriffs Duels
Match and team state.
Types
BombState, PlantingState, HostageState, DroppedItem, Purchase, PlaceableEntry, Grenade.