bot.emit('lookAt', '0'); // a player's ID
bot.emit('lookAt', '1ust'); // a player's name
// legacy dispatches: bot.dispatch(new LookAtDispatch('0'));
target (string): This can either be an ingame username or an ingame player ID. Note that IDs take priority over usernames, so if you pass something like 5 and there is a player with the name 5, the bot will select the player with the ID 5 instead of the player with the name 5. IDs should be passed as strings.The bot will calculate the yaw and pitch of a player and look at the player. Note that this is a snappy rotation and does not implement any kind of smoothing.
bot.emit('lookAt', '0'); // a player's ID
bot.emit('lookAt', '1ust'); // a player's name
// legacy dispatches: bot.dispatch(new LookAtDispatch('0'));
target (string): This can either be an ingame username or an ingame player ID. Note that IDs take priority over usernames, so if you pass something like 5 and there is a player with the name 5, the bot will select the player with the ID 5 instead of the player with the name 5. IDs should be passed as strings.The bot will calculate the yaw and pitch of a player and look at the player. Note that this is a snappy rotation and does not implement any kind of smoothing.