RLBot/RLBotPythonExample

Bot not dodging

GavinDistaso opened this issue · 0 comments

Im using the following code to do a forward dodge:

def begin_front_flip(self, packet):
        self.active_sequence = Sequence([
            ControlStep(duration=0.2, controls=SimpleControllerState(jump=True)),
            ControlStep(duration=0.2, controls=SimpleControllerState(jump=False)),
            ControlStep(duration=0.4, controls=SimpleControllerState(jump=True, pitch=-1.0)),
            ControlStep(duration=0.8, controls=SimpleControllerState()),
        ])
        return self.active_sequence.tick(packet)

and its double jumping but the second jump isn't dodging