playMaker

Author Topic: How to get the count of a given object in an array  (Read 428 times)

RobotGoggles

  • Playmaker Newbie
  • *
  • Posts: 35
How to get the count of a given object in an array
« on: March 07, 2021, 11:46:55 PM »
I have an array that lists all of the summoned units a player has in their control. I'm trying to get the number of instances of a specific kind of unit and can't seem to figure it out.

I tried using ArrayMaker and the "Array List Contains Count" action, but it returns nothing, but I can see that the Array is being populated with the GameObject in question. Can anyone think of an alternate solution that would work here?
When life hands you insomnia, make video games.