Moving Entities

There are several ways you can have entities move around the map. They can follow another entity or player, they can move to a point of interest, they can move along a patrol path, they can flee from an entity, and they can move randomly. Each of these are broken into 2-3 phases. The first phase is deciding on the target. The second phase is setting a path to the target and the third phase is moving to a target.

Moving to a point of interest. The first phase is deciding on the point of interest to move to using Set Point of Interest Path Settings. This action tells the entity what point of interest the should move towards, at what speed (Sneak, Walk, Run), what distance is considered close enough and at what angle tolerance the entity should align with the direction of the point of interest once they arrive. The next phase is SetTarget action. This calculates the path and starts the entity going to the point of interest specified by the previous action. Move To Target action moves the entity along the path to the point of interest. The At path end requirement checks to see if the entity has reached their destination. Moving along a patrol path. You can check for At path end PatrolPathNode and At path end PatrolPathEnd.

When you reach the next PatrolPathNode you need to set the patrol path again to calculate the navigation path to the next node.