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.