Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: doppelmonster on May 06, 2014, 07:45:37 AM

Title: Array maker: reset "Array List get next" ?
Post by: doppelmonster 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" (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.
Title: Re: Array maker: reset "Array List get next" ?
Post by: jeanfabre 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
Title: Re: Array maker: reset "Array List get next" ?
Post by: doppelmonster 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   :)