Skip to main content

Search

How do I: Create the AI in Cone Ball

  • Puntolory

    I have checked out how it works as well. I can't say I understand it fully, but I can say that you should take a look at the ball object of Cone Ball as well: included in its group there are two coloured, invisible parallelepiped sculpts with tags on them that mark the area right around the ball. When playing, these sculpts are orientated by a look-at rotator that always looks at the opposite goal, while the tag is set to be followed by the AI of the opponent player.

    The result is that the AI player constantly tries to reach the position around the ball that is opposite of the goal that the AI is supposed to send the ball into, so that when it jumps and slams down the ball is sent towards the goal.

    As for how the decides when to jump and slam and when, well, I haven't managed to wrap my mind about that yet.

Please sign in to leave a comment.