Hi everyone,
I thought I’d take it upon myself to simplify the following parameters into a struct, as Sam suggested we try:
int MinSpawn = 1, int MaxSpawn = 1, float Radius = 500, float MinScale = 1, float MaxScale = 1
I was hoping to create a struct similar to FSpawnPosition:
So PlaceActors became:
and RandomSpawnPositions became:
I also adjusted everything within the function to call SpawnParameter.MinSpawn, etc. etc. as we did with SpawnPosition:
But I keep getting the error:
no suitable constructor exists to convert from “int32” to “FSpawnParameter”
I’ve tried creating the struct without assigning default values, but it didn’t change anything.
I’m not sure what I’m doing wrong, though I’m sure it’s blatantly obvious to someone more familiar with C++. Any help is greatly appreciated!
Thanks,
Darren