playMaker

Author Topic: Arraylist activate objects  (Read 870 times)

mike32

  • Playmaker Newbie
  • *
  • Posts: 8
Arraylist activate objects
« on: March 12, 2020, 02:26:56 PM »
HI

I am working on a project where is i need to recieve a web request of a list, add the objects to an arraylist by tag name and activate them.

I have most of setup working however when I add the objects to the arraylist, i also need to activate the children of the objects and there is no option in the action to check recursive?

Is there another way I can activate the child objects or add the parent object by tag to the arraylist even if they are inactive?

I am using the actions Array List Find Game Objects By Tag and Array List Activate Game Objects

Any help would really be appreciated

Thanks

Mike

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Arraylist activate objects
« Reply #1 on: March 12, 2020, 03:26:29 PM »
Hi.
You can loop the array (using array get next) and use 'Activate Game Objects' it has recursive

mike32

  • Playmaker Newbie
  • *
  • Posts: 8
Re: Arraylist activate objects
« Reply #2 on: March 12, 2020, 04:39:59 PM »
Hi

Thanks ill give that a try, does it work with arraylists?

Thanks