playMaker

Author Topic: Array maker: reset "Array List get next" ?  (Read 2511 times)

doppelmonster

  • Full Member
  • ***
  • Posts: 157
    • Grinder Games
Array maker: reset "Array List get next" ?
« on: May 06, 2014, 07:45:37 AM »
Hi,
i just start using arraymaker.
I created two different array lists and filled them with game objects. Now i can cycle through the first one with "Array List get next". The list owner is set by a var.

But if i change the game object that owns the arraylist it keeps cycling through the old list, only if the loop ends it will turn to the new assigned list. Is there a way to force reset the "Array List get next" action?

With "Get next child" there was no such problem but i run in the problem that i cant control the order of the childs.


Here is a screen shot of my FSM:
http://www.evernote.com/shard/s239/sh/75d5f1bf-319c-4113-a3fe-0db87b105560/8c913555bcdac0a6f3550edc1b24cebd"Array List get next"

Background:
Im using sets of game objects as waypoints for my AI. If the player reaches a certain point a new set of waypoints is assigned to the AI.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Array maker: reset "Array List get next" ?
« Reply #1 on: May 06, 2014, 07:50:36 AM »
Hi,

 yes, I am aware of this problem. I just addressed it for another action ( getnextRaycastAll).

https://trello.com/c/FamlVQBD/31-arraymaker-update

I'll work on this this week.


 Bye,

 Jean

doppelmonster

  • Full Member
  • ***
  • Posts: 157
    • Grinder Games
Re: Array maker: reset "Array List get next" ?
« Reply #2 on: May 06, 2014, 07:54:21 AM »
Ah great, Jean!

Its good to know that its not me, i really scratched my head what i am missing   :)