def target_spotted(direction, targetBotName, targetX, targetY): """when a bot is seen""" """Point the gun into the target""" gamefile.pointgun(direction) """To fire""" gamefile.fire(2)
def target_spotted(direction): gamefile.pointgun(direction * 1.1) global lastTarget lastTarget = direction gamefile.fire()
def target_spotted(direction, targetBotName, targetX, targetY): gamefile.pointgun(direction*1.4) gamefile.fire(2) gamefile.fire(2) gamefile.fire(2)
def target_spotted(direction): gamefile.pointgun((direction)*1.3) gamefile.fire()
def target_spotted(direction, targetBotName, targetX, targetY): gamefile.pointgun(direction*1.1) global lastTarget lastTarget = direction gamefile.fire(2)
def target_spotted(direction): gamefile.pointgun(direction*1.4) gamefile.fire() gamefile.fire() gamefile.fire()
def target_spotted(direction, targetBotName, targetX, targetY): gamefile.pointgun(direction * 1.1) global lastTarget lastTarget = direction gamefile.fire(2)