Lecture 142 (Unreal doesn't see the Header File

The Compiler says their’s no #include “APawnTurret.generated.h” but there’s one in the Header file. Any ideas as to why it can’t see it?

You are missing a semicolon on line 9

Still Getting the error.

Check your spelling of Pawn in the .cpp

Thank You but now Have these errors.

The first error is giving you the answer to the problem.
The second is due to () on the whole expression (which is redundant) instead of just on
(FVector - FVector)

So I’ve corrected GamplayStatics, and eliminated the extra ( ) but I’m still getting the error.

That is not correct. Take a look at this diagram I made earlier

Now instead of the rotation, we want it’s length. So it’s

(FVector - FVector).Size()
1 Like

That makes sense. Thank you so much for your help!!!.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms