Limited spawns

mersox

Active member
I am having an issue with a new boss I have created. I would post a video but my plan was to have this boss be a secret for players, so hopefully my explanation suffices.

One  of the attacks of this boss is to shoot playes with a machine gun. in Openbor terms, each time this attack is triggered, the entity spawns a bullet spark entity, which in turn spawns two smoke entities. Each time the attack is triggered the enemy spawns many bullets, let's say around 40.

So what happens is that after a while, the bullets "run out". That is, the enemy attacks and shoots, except the bullet sparks cannot be seen anymore. However they are there, they can be heard and can harm the player, but they are invisible. From this momento on, every subsequent spawned entity in the level is invisible. This includes both entities spawned by the boss, and enemies spawned in level after the boss dies.

What could be causing this? Lack of memory to store all these spawned entities? A maxsomething value I have to declare in script.txt or models.txt?
 
Turn your debug on and check position, performance and features. Seams that your spawn queue is not cleared after the spawns.

Btw I had something like this (and I still have). What trigger or influence it somehow is the zoom code.
 
Thank you both! Yes, that was the issue, the spark entity was removed after each spawn animation but the smoke wasn't, so I just added a killentity and problem solved! Thanks!
 
Back
Top Bottom