Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/g/e/ges-python-HEAD/Ai/bot_deathmatch.py   ges-python(Download)
        if self.GetEnemy() is not None:
            # Set condition of enemy distance
            dist_to_enemy = self.GetEnemy().GetAbsOrigin().DistTo( self.GetAbsOrigin() )
            if dist_to_enemy > 800:
                self.SetCondition( Cond.GES_ENEMY_FAR )