Example #1
0
    def _on_bot_spawn(self, path: int, spaz: SpazBot) -> None:

        # Add our custom update callback and set some info for this bot.
        spaz_type = type(spaz)
        assert spaz is not None
        spaz.update_callback = self._update_bot

        # Tack some custom attrs onto the spaz.
        setattr(spaz, 'r_walk_row', path)
        setattr(spaz, 'r_walk_speed', self._get_bot_speed(spaz_type))
Example #2
0
 def _on_bot_spawn(self, spaz: SpazBot) -> None:
     # We want to move to the left by default.
     spaz.target_point_default = ba.Vec3(0, 0, 0)