Building the C++ logic

You are probably guessing that we are going to create an enemy class that will hold the logic for our enemy. As I mentioned earlier, I'll not be inheriting several AI classes from each other, as I will have only one enemy. But, in fact, we are going to create two new classes for the project based on the base class of each. The new classes will be as follows:

  • Enemy: This class will be based on the ACharacter class, which means that it will have a lot of properties, such as our gladiator, as Gladiator as well is inherited from Character.
    Building the C++ logic
  • EnemyAIController: This one will be based on AAIController. While the ACharacter-based class ...

Get Mastering Unreal Engine 4.X 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.