playMaker

Author Topic: "Wait" the first time doesn't work  (Read 684 times)

Jendy

  • Playmaker Newbie
  • *
  • Posts: 2
"Wait" the first time doesn't work
« 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?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: "Wait" the first time doesn't work
« Reply #1 on: November 02, 2022, 03:00:51 AM »
Hi Can you show your fsm setup

Tropical_Nomad

  • Playmaker Newbie
  • *
  • Posts: 6
Re: "Wait" the first time doesn't work
« Reply #2 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.

Jendy

  • Playmaker Newbie
  • *
  • Posts: 2
Re: "Wait" the first time doesn't work
« Reply #3 on: November 02, 2022, 10:53:33 AM »
Hi Can you show your fsm setup

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.
« Last Edit: November 02, 2022, 03:01:00 PM by Jendy »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: "Wait" the first time doesn't work
« Reply #4 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.

Felink

  • Playmaker Newbie
  • *
  • Posts: 3
Re: "Wait" the first time doesn't work
« Reply #5 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.

Thanks, I tried but the problem persists.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: "Wait" the first time doesn't work
« Reply #6 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)

Felink

  • Playmaker Newbie
  • *
  • Posts: 3
Re: "Wait" the first time doesn't work
« Reply #7 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)

Nothing, it's 0, what else could this conflict cause?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: "Wait" the first time doesn't work
« Reply #8 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