Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Blueprints Visual Scripting for Unreal engine

You're reading from   Blueprints Visual Scripting for Unreal engine Build professional 3D games with Unreal Engine 4's Visual Scripting system

Arrow left icon
Product type Paperback
Published in Jul 2015
Publisher Packt
ISBN-13 9781785286018
Length 188 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Brenden Sewell Brenden Sewell
Author Profile Icon Brenden Sewell
Brenden Sewell
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Creating navigation behavior


The first goal for our enemy will be to get it to navigate between points we create on the map. To accomplish this, we'll need to create points on the map that the enemy will be navigating to, and then we need to set up the behavior that will cause the enemy to move to each of the points in a cycle.

Setting up patrol points

Let's start by creating the path we want the AI to patrol. While still being in the level editor, look at the Modes panel. With the Place tab selected, click on All Classes and drag a Target Point object onto the area of the map that you would like for the enemy to start the patrol. Now look at the World Outliner panel and click on the folder icon with a plus symbol that sits to the right of the search bar. Click on this to create a new folder called PatrolPoints. This folder will contain all of the points we create so that we can keep the main list tidy. Drag the TargetPoint object in the outliner into this new folder and rename the object...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime