Download

Is it possible to CULL or DISPATCH elements inside a list / array?

In this example I have 3 target points. One of the points has an actor tag “IS”.

When I perform the “Actor has a tag” action I get as a result, after the loop:

true
false
false

Is there any way of getting this info, to cull the false ones so I only get the one with the true boolean?

I did figured out myself how to do it. So I will write it down here in case anybody else have the same doubt.

So, since the loop analyze each element of the array individually:

  1. you need to create a “target point” variable.

  2. Set the variable to get the data from the loop each time the branch is true.

  3. Create a new array with the target point variable which will only take the true values.

I attach the blue print so it’s more clear.