How to limit the number of specific type actor on screen at a given time

drxboxlive

  • Posts: 13
Hi guys, I was wondering if any of you new how to set a set number of a specific type of actor that could be allowed on screen at a given time. Like for instance. I would only want 10 actors of a specific type to be able to spawn at any time. thanks.

JeffreyDriver

  • Posts: 2262
Have a look at SCENES > ACTOR > GET ACTOR

There's a block that will let you check for types of actors. I'd use a number attribute to count the actors.

As long as the attributes value is less than 10, keep spawning actors. If the attribute value is equal to or greater than 10, stop spawning.