Book Image

Mastering Unreal Engine 4.X

By : Muhammad A.Moniem
Book Image

Mastering Unreal Engine 4.X

By: Muhammad A.Moniem

Overview of this book

Unreal Engine 4 has garnered a lot of attention in the gaming world because of its new and improved graphics and rendering engine, the physics simulator, particle generator, and more. This book is the ideal guide to help you leverage all these features to create state-of-the-art games that capture the eye of your audience. Inside we’ll explain advanced shaders and effects techniques and how you can implement them in your games. You’ll create custom lighting effects, use the physics simulator to add that extra edge to your games, and create customized game environments that look visually stunning using the rendering technique. You’ll find out how to use the new rendering engine efficiently, add amazing post-processing effects, and use data tables to create data-driven gameplay that is engaging and exciting. By the end of this book, you will be able to create professional games with stunning graphics using Unreal Engine 4!
Table of Contents (22 chapters)
Mastering Unreal Engine 4.X
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
Index

Adding notifies


Remember a few pages ago, when we created the animation blueprint? Or, to be more precise, when I showed my animation blueprint setup and you used the knowledge you have from Chapter 1, Preparing for a Big Project, and Chapter 2, Setting Up Your Warrior, to build your own animation blueprint setup for your AI?

There was one more thing that I didn't want to add to the animation blueprint at that time, as it is was more dependent on the C++ code. It is the animation notifies.

We have discussed before the importance of notifications and how accurate they are when it comes to executing something at the exact moment.

Within the C++ code, we have written two important functions and the loss of gameplay logic will count on these two functions; it was the OnPreAttack and the OnPostAttack methods. Both the functions do handle each other; the OnPreAttack method works on preparing the enemy to do an attack and the OnPostAttack method works on returning everything to normal.

But when we...