top of page

Shooter Prototype

Shooter Prototype

Shooter Prototype

Shooter Prototype
Search video...
Sound and UI

Sound and UI

00:07
Play Video
Enemy AI

Enemy AI

00:18
Play Video

Summary

This is the second project I've completed primarily with C++ in Unreal. I learned things such as setting up enemy AI and implementing Blueprint nodes with C++. I have some code samples below as well as my behavior tree for the enemy AI.

Shooter Character

Gun

Behavior Tree

This is the behavior tree for my enemy AI. I'll summarize what's happening in plain English. If the enemy can see the player, it moves to the player's location and shoots every second. If the enemy can't see the player, but knows the location where it last saw the player, it moves to that location. If it can't find the player after getting to the last known location, it goes back to its original position. The values that determine which action the AI takes are set with C++, as shown below.

Shooter AI Controller

Shoot Task

Clear Blackboard Value

© 2017 by F.J. Hagen. Proudly created with Wix.com

bottom of page