Hi all,
I have set up the projectile movement component in the CPP file but there is no movement from the projectiles at all! Now before you say the missliles are colliding with the tank which they might well be doing the Projectile Movement Component is also not showing up in the Blueprint either. So I must have something wrong with my coding so here a two snippets involving the ProjectileMovementComponent, I need fresh eyes to take a look over to see what’s wrong:
Projectile.h
UPROPERTY(VisibleAnywhere, Category="Combat", BluePrintReadWrite, meta = (AllowPrivateAccess = "true"))
class UProjectileMovementComponent *pmc;
projectile.cpp
pmc = CreateDefaultSubobject<UProjectileMovementComponent>(TEXT("Movement"));
//These seem to be vars available in the ProJectileMovementComponent
pmc->InitialSpeed = 10.0f;
pmc->MaxSpeed = 15.0f;
Here is a piccy showing no info for the pmc, the Projectile Movement Component:
All help greatly appreciated.