In this episode of the unreal engine side scroller project, I am going to implement a simple patrol system for AI controlled enemy character. we will be able to define 2 ends for the patrol paths in the sidescroller level and the NPC character will move back and forth in between those 2 points. Also, we will be able to define a wait time at each end of the patrol path. If the NPC see the player, he will stop patrolling and start to follow and fight the player character. if the player character break the line of sight, npc will return to normal patrol duty.
password =codelikeme_patrol