Trying to make an enemy spawner, that runs on a timer Handle.
Got my enemy spawner sort of working, with the timer calling my SpawnHooligan() funciton every 10 seconds. The issue is within my SpawnHooligan Function.
I run the check:
if (IsValid(HooliganClass))
and a debug message should show up if it is found
within my header file I have:
// Hooligan class to spawn
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=“Enemy Spawner”)
TSubclassOf HooliganClass;
This is setup as I have seen in the third person C++ example for the combat varient where they have their own version of the enemy spawner. What is the difference that is happening in the example project and mine that is not correctly referencing my Hooligan Class?
I have include my BaseHooliganCharacter.h class in my cpp file and in my header I have done:
class ABaseHooliganCharacter
Any help would be great