Okay…
https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Particles/UParticleSystemComponent/OnParticleCollide/index.html
^ Above is the horrendous documentation we have. So i’ve delved into the source to find out it wants:
^ These Parameters
However,
Here is the code i have, that claims the signature is wrong
UParticleSystemComponent* PSC = UGameplayStatics::SpawnEmitterAtLocation(World, BileSprayPS, Location, Rotation);
if (PSC != nullptr)
{
PSC->OnParticleCollide.AddDynamic(this, &UBossAttacksComponent::InflictDamage);
}
UFUNCTION()
void InflictDamage(const FName& EventName, float EmitterTime, int ParticleTime, const FVector& Location, const FVector& Velocity, const FVector& Direction, const FVector& Normal, const FName& BoneName);
Can anyone identify the problem here, or … yea, anything xD
Thanks!