AI please wait - By Daniel Bumbarger


The Problem

When the AI started its turn, it would move towards the player units. Eventually it would move in range of attacking and not attack. The check to see if any players where in the area was happening too fast, this check happened before it even finished it's movement.

Problem Solutions

For this to work we needed the AI to wait. By adding the WaitForMessage function at the end of the movement task node, I could manipulate when to leave this node and go into the attack node. Now once we have reached our destination the AI would check for who is in range.

Get Project Banner

Leave a comment

Log in with itch.io to leave a comment.