Hide all actors

Hello,

is there a way to hide all actors of a level exept 2 (the character and an ennemy) without use get all actors of class x times for x actors?

And if it IS possible, is there a way to make the hide progressive (like a fade with a timeline or smtn) ?

Thanks in advance.

is there a way

Yes. You can use Get All once. You can use tags, you can reference stuff in an array. There are too many ways, actually, with or without Get All. How to do it depends on what we’re actually doing.

And if it IS possible, is there a way to make the hide progressive (like a fade with a timeline or smtn) ?

  • add stuff to array and iterate every x seconds
  • or call a custom event with a delay inside the pertinent actors
  • or tell each light which light goes next

If you do want a specific order, do not use Get All actors, ofc. If there were 10 lights in the level and we wanted to switch them on one-by-one, I wouldn’t bother with fancy setups. Have a timer switch them off by fetching next array element.

Do elaborate on the scope, re-usability and maintenance. Are we doing it all:

  • once

or:

  • there are 14 levels, all have some lights
  • some are spawned dynamically, and destroyed too
  • there’s anywhere from 150 to 600 lights

Sometimes doing it by hand makes sense, oftentimes it does not.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.