Using Include, Bt Can't Compile

Trying to use SuggestProjectileVelocity and I keep getting error message when I try to compile. First message is “UGamePlayStatics” is not a class, followed by “SuggestProjectileVelocity” identifier not found. Here are the includes in my TankAimingCompenent.cpp file:
#include “TankAimingComponent.h”
#include “Classes/Kismet/GameplayStatics.h”
#include “Classes/Kismet/GameplayStaticsTypes.h”

Here is the SuggestProjectileVelocity code from the same file:
if (UGamePlayStatics::SuggestProjectileVelocity
(
this,
OutLaunchVelocity,
StartLocation,
HitLocation,
LaunchSpeed,
false,
0,
0,
ESuggestProjVelocityTraceOption::DoNotTrace
)
)

Any help will be appreciated as I’m completely stumped at this point.

Found it: capital P in UGamePlayStatics

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

Privacy & Terms