Hi , recently I am designing a Zombie game(FPS), I wish to spawn my Zombies at random places& random time. I hope the zombies are all inside this NavMesh as shown below
PS: I create a Navmesh so Zombie wonât bump into objects.
I donât want them to spawn outside the NavMesh otherwise they will get lost.
Thanks a lot for helping me.
Hi, thanks for answering.
I understand that I should set Max variable to the maximum number I want.
However, it would be really great if you explain the N variable to me. At first, I leave its value at default but it doesnât seem to work properly. So would you like to describe it in detail (about what exactly I should do)?
Also, Iâve tried GetAllActorOfClass blueprint. It works well at the beginning and successfully limits the number of Zombie to 5(My maximum value).
However, when I shoot and destroy Zoombies. It just stop spawning!
Here is my blueprint and do you know why?
I get what all this is about. But when I am testing the program, the N value stops at 5. I think itâs because that I have to -1 for N value after I destroy the Zombie. But I donât know how to make such blueprint.
By the way, what does âGoalPostâ mean?
Thank you