You should usually send a first spawn packet here and initialize your game information.
bot.on('gameReady', () => {
console.log('game is ready!');
// this is a good place to call a spawn dispatch
bot.dispatch(new SpawnDispatch());
// this is also a good place to call a change weapon dispatch
bot.dispatch(new SaveLoadoutDispatch({ gunId: 1 }));
});
You should usually send a first spawn packet here and initialize your game information.
bot.on('gameReady', () => {
console.log('game is ready!');
// this is a good place to call a spawn dispatch
bot.dispatch(new SpawnDispatch());
// this is also a good place to call a change weapon dispatch
bot.dispatch(new SaveLoadoutDispatch({ gunId: 1 }));
});