Hi ,
It seems this forum is not that active as i thought. Anyways, you can’t just call InitialLifeSpan() on an uobject, as i believe it belongs to the AActor Class.
So because of that , i changed ourSpawnObject type to AActor
PS: Also apparently just using SetLifeSpan() on the .cpp file itself seems to crash the entire project and make it unable to open at all.