How to do it...

  1. Create a C++ class and select Character as the parent class. Then, hit Next:
  1. Under the Name property, type in Warrior, and then click on Create Class:

We will dive into doing the implementation after we do some setup inside UE4.

  1. Launch UE4 and right-click on the Warrior class. Then, select Create Blueprint class based on Warrior:
  1. From the menu that pops up, set the name to BP_Warrior and then select Create Blueprint Class ...

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