Ugameplaystatics

code : UGameplayStatics::SpawnEmitterAtLocation(GetWorld(), ExplosionEffect, GetActorLocation());
(i included “Kismet/GameplayStatics.h” )

when i compile i get this error : " C++ no instance of overloaded function “UGameplayStatics::SpawnEmitterAtLocation” matches the argument list "

You are passing the actor location as the third argument, but the expected argument is a Transform.

Try with this:

UGameplayStatics::SpawnEmitterAtLocation(GetWorld(), ExplosionEffect, GetActorTransform());

Let me know if this solves your problem and please mark the answer as correct.

Cheers!

This also helped me. I am very grateful!