Toon Tanks 147. Spawn Actors having Error

I cant figure out why I keep getting this error.

i figured out a work around instead of initializing SpawnLocation and SpawnRotation as it was have problems with the variable types. I just called the information inside the TempProjectile variable like this.

	AProjectileBase* TempProjectile = GetWorld()->SpawnActor<AProjectileBase>(ProjectileClass, ProjectileSpawnPoint->GetComponentLocation(), ProjectileSpawnPoint->GetComponentRotation());

You put location twice originally

(Class, Location, Location)
                    ^^^
              Should be Rotation

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms