Dispatches
Dispatches are how you command you bot to…do something!
Dispatches are how you tell the bot to do something.
Dispatch Checks
Dispatches will always run a check to see if they can occur. This check just returns true
or false
.
If the check is false, the Dispatch will be saved, and the bot will check every tick
for the Dispatch to return true
. Once it does, the Dispatch will be executed.
Dispatch List
The good part! Here are all of the dispatches:
- BootPlayerDispatch - boot a player from a private room
- ChatDispatch - send a chat message
- FireDispatch - fire the gun
- GameOptionsDispatch - change game settings in private rooms
- GoToAmmoDispatch - go to the nearest ammo pickup
- GoToCoopDispatch - go to the coop
- GoToGrenadeDispatch - go to the nearest grenade pickup
- GoToPlayerDispatch - go to a specified player
- GoToSpatulaDispatch - go to the spatula
- LookAtDispatch - look at a player
- LookAtPosDispatch - look at a position
- MeleeDispatch - use the melee
- MovementDispatch - move!!
- PauseDispatch - pause the game (clicking esc)
- ReloadDispatch - reload the gun
- ReportPlayerDispatch - report someone
- SaveLoadoutDispatch - change your gun & skins
- SwapWeaponDispatch - swap between primary & secondary
- SwitchTeamDispatch - switch your team
- ThrowGrenadeDispatch - throw a grenade
Each of these has their own file to explain what checks are ran and the function in a deeper form.
In the end, dispatches are fairly simple - check they can run and run them!