Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: paradiseprime on August 18, 2019, 11:12:27 AM

Title: Array list delete duplicate causing Send event by name to freeze state
Post by: paradiseprime on August 18, 2019, 11:12:27 AM
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 :'(
Title: Re: Array list duplicate causing Send event by name to freeze state
Post by: LeDisciple on August 18, 2019, 12:55:02 PM
If you put all those actions in another state just to let the flow breath...
Title: Re: Array list duplicate causing Send event by name to freeze state
Post by: paradiseprime 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?
Title: Re: Array list duplicate causing Send event by name to freeze state
Post by: jeanfabre 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
Title: Re: Array list duplicate causing Send event by name to freeze state
Post by: paradiseprime 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.
Title: Re: Array list delete duplicate causing Send event by name to freeze state
Post by: jeanfabre on August 19, 2019, 03:17:01 AM
Hi,

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

Bye,

 Jean
Title: Re: Array list delete duplicate causing Send event by name to freeze state
Post by: paradiseprime 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.