Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Jendy on October 28, 2022, 09:56:20 AM

Title: "Wait" the first time doesn't work
Post by: Jendy on October 28, 2022, 09:56:20 AM
I'm having a problem with the Wait action, I created a float variable and associated with Wait time. The first time I activate that state, he moved on to the next state without waiting. But the following times that I activate the first state the Wait works. Where is I wrong?
Title: Re: "Wait" the first time doesn't work
Post by: djaydino on November 02, 2022, 03:00:51 AM
Hi Can you show your fsm setup
Title: Re: "Wait" the first time doesn't work
Post by: Tropical_Nomad on November 02, 2022, 03:34:33 AM
Have you tried creating a finished custom event?
That should solve it, also check if you have real time enabled.
Title: Re: "Wait" the first time doesn't work
Post by: Jendy on November 02, 2022, 10:53:33 AM
Hi Can you show your fsm setup
(https://i.imgur.com/rtLJoNA.jpeg)
Moreover, if I interrupt the action before the "holdweight", the Wait continues not to work. Only after carrying out the animation does Wait start to work the following times.
1.9.5 unity 2022.2b10
Thank you for your time.
Title: Re: "Wait" the first time doesn't work
Post by: djaydino on November 03, 2022, 04:28:53 AM
Get / Set Property is slow (as its mirroring)
Therefore the wait already started before you get the "holdWeight" Data.
try setting the Wait action in a state between state 3 and state 4.
Title: Re: "Wait" the first time doesn't work
Post by: Felink on November 03, 2022, 08:51:59 AM
Get / Set Property is slow (as its mirroring)
Therefore the wait already started before you get the "holdWeight" Data.
try setting the Wait action in a state between state 3 and state 4.
(https://i.imgur.com/zH8akNI.gif)
Thanks, I tried but the problem persists.
Title: Re: "Wait" the first time doesn't work
Post by: djaydino on November 05, 2022, 12:42:34 AM
HI.
Set a breakpoint on state 3b (right click the state label)
then on the first time look to the holdWeigt variable value.
to see if its not 0 (or a very low number)
Title: Re: "Wait" the first time doesn't work
Post by: Felink on November 06, 2022, 08:18:05 AM
HI.
Set a breakpoint on state 3b (right click the state label)
then on the first time look to the holdWeigt variable value.
to see if its not 0 (or a very low number)
(https://i.imgur.com/MzkCCJY.png)
Nothing, it's 0, what else could this conflict cause?
Title: Re: "Wait" the first time doesn't work
Post by: djaydino on November 06, 2022, 10:07:54 PM
Hi.
The issue might be in the script where you get the value.
with the get property it seems to get a 0 value.
thy to set it in a state after the set property actions (it might be that these values need to be set before getting the value