playMaker

Author Topic: Array list delete duplicate causing Send event by name to freeze state  (Read 1709 times)

paradiseprime

  • Full Member
  • ***
  • Posts: 105
After 2 hours of trying to figure out why my actions underneath Send Event By Name werent triggering I have found out why.

The send event is going to another object with an array list that stores the objects that fall inside the collider, copies those items to another array list, then all duplicates are removed. The issue is that when it got to the remove duplicates action which is at the top, the object that has the send event by name action doesnt let any other actions below it activate.

I need the delete duplicate action but I havent found a way to solve this issue. Help please :'(
« Last Edit: August 19, 2019, 03:06:48 AM by paradiseprime »

LeDisciple

  • Playmaker Newbie
  • *
  • Posts: 35
Re: Array list duplicate causing Send event by name to freeze state
« Reply #1 on: August 18, 2019, 12:55:02 PM »
If you put all those actions in another state just to let the flow breath...

paradiseprime

  • Full Member
  • ***
  • Posts: 105
Re: Array list duplicate causing Send event by name to freeze state
« Reply #2 on: August 18, 2019, 06:32:56 PM »
If you put all those actions in another state just to let the flow breath...
Im sorry I dont understand?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Array list duplicate causing Send event by name to freeze state
« Reply #3 on: August 19, 2019, 02:24:36 AM »
Hi,

 what is the name of the action you are using to copy/duplicate the arraylist?

Bye,

 Jean

paradiseprime

  • Full Member
  • ***
  • Posts: 105
Re: Array list duplicate causing Send event by name to freeze state
« Reply #4 on: August 19, 2019, 03:07:37 AM »
Hi,

 what is the name of the action you are using to copy/duplicate the arraylist?

Bye,

 Jean
Sorry it was Array List Delete Duplicates. I am storing them then deleting the duplicates.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Array list delete duplicate causing Send event by name to freeze state
« Reply #5 on: August 19, 2019, 03:17:01 AM »
Hi,

 ok, can you make some screenshots of  your states and fsm?

Bye,

 Jean

paradiseprime

  • Full Member
  • ***
  • Posts: 105
Re: Array list delete duplicate causing Send event by name to freeze state
« Reply #6 on: August 19, 2019, 03:53:46 AM »
Hi,

 ok, can you make some screenshots of  your states and fsm?

Bye,

 Jean
Ok, so I managed to solve the issue by placing both the "Send Event By Name" and "Array List Delete Duplicates" right above the last action. For some reason I have tried every frame with no success.
An event is sent from the weapon to the player telling when the hitbox is open/close then between the open and close it will send an event by name to the weapon equipped and will go through the storing targets/deleting duplicates/dealing damage to each target with array list get next.