Posts

Showing posts with the label Behavior Tree

'Behavior Tree' basic tutorial for RPG citizen

Image
This is very basic tutorial but the contents of the official document are omitted. Official document : https://docs.unrealengine.com/latest/INT/Engine/AI/BehaviorTrees/QuickStart/ Behavior Tree is a concept unfamiliar to many people. The links below have been very helpful in understanding a behavior tree : https://en.wikipedia.org/wiki/Behavior_tree_(artificial_intelligence,_robotics_and_control) Official Unreal tutorial is great but in this time, we will make more simpler one. So, let's implement a general RPG game NPC AI. Step 1. Plan NPC have 3 tasks.  Wandering : Go here and there(where 'note' actor placed).  Look around : Do rotate for a while.  Angry to player : Keep watching player till go out of sight. Step 2. Behavior tree This is the final behavior tree result. We will make 3 custom tasks and 1 custom decorator. (If we have the opportunity, I will cover more in other articles) Make new 'Task' blueprints. Step 3....