Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unreal Engine 4.X By Example

You're reading from   Unreal Engine 4.X By Example An example-based practical guide to get you up and running with Unreal Engine 4.X

Arrow left icon
Product type Paperback
Published in Jul 2016
Publisher Packt
ISBN-13 9781785885532
Length 506 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Benjamin Carnall Benjamin Carnall
Author Profile Icon Benjamin Carnall
Benjamin Carnall
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Introduction to Unreal Engine 4 FREE CHAPTER 2. Blueprints and Barrels – Your First Game 3. Advanced Blueprint, Animation, and Sound 4. Unreal Engine, C++, and You 5. Upgrade Activated – Making Bounty Dash with C++ 6. Power Ups for Your Character, Power Ups for the User 7. Boss Mode Activated – Unreal Robots 8. Advanced AI and Unreal Rendering 9. Creating a Networked Shooter 10. Goodbyes and Thank yous Index

Creating a custom task via blueprint


Ok, now that we have one of the tree branches completed, let's work on the other. We need the child of the first selector node to execute functionality that will cause the AI to track towards the object set at TargetToFollow. We cannot use a standard MoveTo task for this, as we require the AI to move towards an object not a vector location. This means we will need to create our own custom task that will be carried out by the AI. Tasks, services, and decorators have all been designed so that we may create our own using either blueprint or C++ abstractions. We will be creating a task that allows the AI to move towards the target object found at the TargetToFollow blackboard key.

We can create new blueprint versions of these nodes by selecting the appropriate button in the BT editor. Navigate to the BossBT editor now and press the New Task button. This will bring up the task Blueprint editor. This editor is very similar to that of the blueprint editor we...

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 $19.99/month. Cancel anytime
Banner background image