So I’ve managed to create a very basic FPS where the Ai (Suzanne) is tracking player (just rotating) and when player is visible to her ray she is firing (messages). The player can take cover bust by moving behind a wall, how can Suzanne take cover? I’ve searched for a tutorial but I didn’t find anything.
the simplest way to do this is to place empties at locations where the AI can take cover, and simply have the Ai move to one of them.
Adding to what @edderkop said, you use a Steering actuator and set it to Path Following to run to the empty. You’ll have to switch states when you do this.
Look at this little demo I made that shows exactly how to do this. The logic is on the green cube:
1 Like