This is MAINLY used in the spatula & KOTC gamemodes, wich signify whe things like the spatula is dropped or someone starts/stops capturing a coop, among other things.
oldState is an object (specifically bot.game)newState is an object (specifically Bot.game)oldPlayersOnZone is an array of Player objects that were on the zone before the changebot.on('gameStateChange', (oldState, newState, oldPlayersOnZone) => {
console.log(`game state has changed`);
console.log(`old state:`, oldState);
console.log(`new state:`, newState);
});
This is MAINLY used in the spatula & KOTC gamemodes, wich signify whe things like the spatula is dropped or someone starts/stops capturing a coop, among other things.
oldState is an object (specifically bot.game)newState is an object (specifically Bot.game)oldPlayersOnZone is an array of Player objects that were on the zone before the changebot.on('gameStateChange', (oldState, newState, oldPlayersOnZone) => {
console.log(`game state has changed`);
console.log(`old state:`, oldState);
console.log(`new state:`, newState);
});