playMaker

Author Topic: Reset bool option on standard get next actions  (Read 116 times)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2659
    • View Profile
    • jinxtergames
Reset bool option on standard get next actions
« on: January 29, 2018, 12:44:57 PM »
Hi.
It would be nice if there is a reset bool option on all the standard 'get next' action as i noticed that this is useful in many cases.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12671
  • Official Playmaker Support
    • View Profile
Re: Reset bool option on standard get next actions
« Reply #1 on: January 31, 2018, 01:49:47 AM »
Hi,

 yes, I agree, I'll check with Alex if he's ok for this to be added. The problem is it's complex to explain, but indeed I think necessary for completness in possibilities.

 Bye,

 Jean

tcmeric

  • Hero Member
  • *****
  • Posts: 525
    • View Profile
Re: Reset bool option on standard get next actions
« Reply #2 on: February 08, 2018, 06:37:33 PM »
Not sure what this is. Can you give an example?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2659
    • View Profile
    • jinxtergames
Re: Reset bool option on standard get next actions
« Reply #3 on: February 08, 2018, 07:21:17 PM »
Hi.
@tcmeric

for example a get next action will loop from 0-9 but then you only want to loop it until a certain object is found (object was for example on index 4)

Later you want to loop again from the start, if there is no reset option the action will continue from it last position which means (in the example) it will not start from 0 but it will start from index 5 (continue from its last know index)

With a reset option the action will check if reset is true before continuing.
If false it will continue like looping.
If true it will Start back from the 'start index' and set the reset bool to false.

You can see the difference on 'ArrayGetNext2' on the ecosystem.

There are many cases that you do not want to loop thru the whole array list (or other lists like 'Get Next Child')