playMaker

Author Topic: Is there an action to determine which array a game object is part of?  (Read 679 times)

justifun

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 280
I have several arrays with several objects in each one.  Is there a way I can easily determine which array a particular object is in?  Or do i need to loop through each and every one till i find it.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Is there an action to determine which array a game object is part of?
« Reply #1 on: April 26, 2022, 06:14:27 PM »
Hi.
You can check with Array (List) Contains.
But you would have to check each one.

a solution could be, using tags and a Game Object Tag Switch.

or if the objects have a fsm you could add a 'Type' variable and get that variable to See which array you should check.