dist# = EntityDistance(player, bot) If dist < 5 Then If AnimSeq(bot) <> seqAttack Animate bot, 1, 0.5, seqAttack Else If AnimSeq(bot) <> seqRun Animate bot, 1, 0.5, seqRun Endif