TArray<AActor*> Add

SpawnActor is a templated function, you have to provide whatever class it is in <> brackets