Playmaker Forum

PlayMaker News => General Discussion => Topic started by: wirejaw on March 10, 2021, 09:55:02 PM

Title: Disable button input?
Post by: wirejaw on March 10, 2021, 09:55:02 PM
Is there a way to disable button input (and reset/enable on exit)?  I need to disable an input during a state that has a brief wait time, and then enable it after the wait time is over.
Title: Re: Disable button input?
Post by: djaydino on March 11, 2021, 07:52:17 AM
Hi.
Set button behavior in a separate fsm.

and when pressed send events or set fsm bools to the other fsms where you need it.

now you can disable the button fsm.

or you can set a checker (bool 'Button X active) before sending an event or bool.
which you can set to true or false from another fsm.
Title: Re: Disable button input?
Post by: wirejaw on March 11, 2021, 11:00:37 AM
Thanks I'll give it a try.