Untitled

mail@pastecode.io avatar
unknown
javascript
a year ago
338 B
2
Indexable
Never
bot.on('physicTick', () => {
    try {
    const entity =  bot.nearestEntity(entity => entity.name === "player")
    if(!entity) { return } 
    let distance = MathCoords(bot.entity.position, entity.position)
    let collision = CollisionRule(distance[0], distance[3], distance[4]) 
    }
    catch (err) { console.log(err) }
})