Thank you sir for reply, but the post doesn’t solved my problem… I am stuck in the node
if (OutRow)
{
SpawnActor(); // I don't know how to use this in C++
OutRow.Location; // I already have this to set in spawnTransform under SpawnActor Node
}
// SpawnTransform is the location + rotation + scale (absolute) of the spawn
FTransform SpawnTransform;
// SpawnInfo contains the Collision Handling Override
FActorSpawnParameters SpawnInfo;
SpawnInfo.SpawnCollisionHandlingOverride = ESpawnActorCollisionHandlingMethod::AlwaysSpawn;
// Spawn the actor:
// Use your own actor class:
TSubclassOf<AActor> YourActorClass = AActor::StaticClass();
AActor* NewActor = GetWorld()->SpawnActor<AActor>(YourActorClass, SpawnTransform, SpawnInfo);
You can also use this to create a transform FTransform Trf = UKismetMathLibrary::MakeTransform(OutRow.Location, FRotator::ZeroRotator, FVector(1.f, 1.f, 1.f));
If you have the whole engine source, I would recommend doing Find In All Files “SpawnActor” and then you can find both the definition of the function and examples of how to use it.