Creating enemy wandering behavior

Previously, we set the default behavior for enemies as a patrolling movement between two points. While this worked well as a test bed for our hearing and seeing components, and would be appropriate for a stealth-oriented game, we are going to ramp up the challenge and action of this game's experience by replacing this behavior with random wandering. This will make avoiding enemies significantly harder, encouraging more direct confrontations. To do this, we are going to return to the EnemyBehavior Behavior Tree. Open EnemyBehavior from the Enemy folder in the Content Browser.

Identifying a wander point with a custom task

Once you've opened EnemyBehavior, click on the Blackboard tab. We need to create a key that will ...

Get Blueprints Visual Scripting for Unreal Engine now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.