I’m trying to spawn an actor that is from a class that is a subclass array from an abstract C++ class. I have no clue how to get this to work.
header:
TArray<TSubclassOf<ABlast>> BlastTypes;
int CurrentWeapon;
source:
GetWorld()->SpawnActor<TSubclassOf<ABlast>>(BlastTypes[CurrentWeapon], Location, Rotation, SpawnInfo);
Any help is greatly appreciated!