ABSTRACT

This chapter explores the artificial intelligence system (AI) of Unreal Engine and builds a patrolling AI that can make the game fun to play. Sequence node executes what’s connected to the bottom of it from left to right. A sequence node fails if it encountered a failed task and aborts. A sequence only returns with success if all tasks under it had succeeded. The Selector node also executes what’s connected to the bottom of it from left to right. The difference is if a branch under it has failed, it moves on to the next one. It stops whenever a branch had succeeded, and returns to the top with success. A selector fails if all the branches fail. The Save cached pose operation creates a cache (reference) of the animation. One can use this cache anywhere else in the AnimGraph.