Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: krimson0 on June 24, 2013, 03:54:43 PM
-
I was wondering if there is an action or a way to set a bool value based on another bool being true within a state. Thanks.
-
Yes, you would use Set Bool Value.
Set the Bool variable of what you want to change, then put the Bool Value to the Bool Variable of the Bool you want it to get the Answer from.
(http://www.damrightgames.com/wp-content/uploads/2013/06/boolvalue.gif)
Hope that makes sense.
-
Thanks for the answer, makes perfect sense. However, is there a way to set it to the opposite? Basically I need one one bool is true, the other one turns false. Thanks for your time.
-
Bool Test and Bool Flip
-
Thanks for the answer. However, if I run bool flip, won't the second bool always flip no matter if the first bool is true or not?
-
Hi,
Yes, Bool Flip will toggle the value. Here I think that you need a custom action actually.
here it is:
http://hutonggames.com/playmakerforum/index.php?topic=4230.0
bye,
Jean
-
Thanks Jean,
This is what I needed. Though in the state that I am currently working in, it doesn't seem to work, but it works elsewhere, so I guess I'll keep working at it. Thanks again.