Using Decorators for conditions

Decorators are nodes that allow you to enter a conditional expression on evaluation of another node. They are fairly oddly named, but they are called Decorators because they tend to dress up execution nodes with conditions for execution. For example, in the following diagram, the MoveTo function is only executed when the Decorators condition is met:

Using Decorators for conditions

There are several pre-packaged Decorators that come with UE4, including Blackboard (variable checks), Compare Blackboard Entries, Cone Check, Cooldown, Does Path Exist, and so on. In this recipe, we explore the use of some of these conditionals to control the execution ...

Get Unreal Engine 4 Scripting with C++ Cookbook 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.