Private
_hitPrivate
_stepsAn object containing the current assets worn by the bot.
An object containing the body colors of the bot.
If .destroy() has been called on the bot.
The speech bubble of the bot. ("" = empty).
Static
botStatic
Readonly
captureStatic
captureSets or gets the default captureRejection value for all emitters.
Static
defaultStatic
Readonly
errorThis symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
Private
_detectIdentical to setInterval, but will be cleared after the bot is destroyed. Use this if you want to attach loops to bots, but don't want to worry about clearing them after they're destroyed.
The callback function.
The delay in milliseconds.
Starts hit detection for the bot.
Static
listenerStatic
onStatic
once
Bots are fake players that player's can interact with.
You can do many things with them, and they even have very primitive AI capabilities.
An example of a zombie that can chase and kill players: