playMaker

Author Topic: Array List Find Game Objects By Tag[SOLVED]  (Read 2484 times)

LoneCipher

  • Playmaker Newbie
  • *
  • Posts: 31
Array List Find Game Objects By Tag[SOLVED]
« on: March 20, 2020, 11:09:35 AM »
Hello all!,

How does the 'Array List Find Game Objects By Tag' action work? There isn't an output variable slot in the action.
How do I store the output of this action?
« Last Edit: March 25, 2020, 05:35:44 AM by jeanfabre »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Array List Find Game Objects By Tag
« Reply #1 on: March 20, 2020, 11:22:55 AM »
Hi.
This action will get all Game Objects in hierarchy and place this into an array list.

if you want to find objects with a certain tag inside an array list, you need to use array list get next to loop thru the list.

On 'array list get next' store the game object and go to next state (using the Loop Event)
Then use for example 'Game Object Compare Tag' or 'Game Object Tag Switch' Then do what you have to do with the tag/object
Then loop back to the state with the 'array list get next'

LoneCipher

  • Playmaker Newbie
  • *
  • Posts: 31
Re: Array List Find Game Objects By Tag
« Reply #2 on: March 20, 2020, 11:24:59 AM »
Thank you!