Training Stream - Tanks vs. Zombies: Movement and Aiming - April 5th

Hey, ChappyOak! You’re right some changes have taken place that affect this code. USTRUCTS that you wish to use as UPROPERTIES must now be BlueprintTypes. So you just need to change this part of your code:


USTRUCT()
struct FTankInput

To this:


USTRUCT(BlueprintType)
struct FTankInput

That change came about in 4.17, I think, or maybe 4.16, which is why this was fine in 4.10. That should get it working for you. I’ll update the source file when I get a . Thanks for watching and posting!

EDIT: On attempting this myself, there’s one other change that must be made before this will compile. The UArrowComponent’s header file, Runtime/Engine/Classes/Components/ArrowComponent.h, should be included in Tank.h. This will be in the source code update that I post in the next few minutes.

Here is the 4.17 version: Box

I can’t post it up top because made that post, but I’ll leave the link here for now until I can talk to the Community team about it.