playMaker

Author Topic: Set Bool from Bool  (Read 4638 times)

krimson0

  • Playmaker Newbie
  • *
  • Posts: 10
Set Bool from Bool
« 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.

Cool_Flow

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Set Bool from Bool
« Reply #1 on: June 24, 2013, 05:23:30 PM »
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.



Hope that makes sense.

krimson0

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Set Bool from Bool
« Reply #2 on: June 24, 2013, 08:17:15 PM »
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.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Set Bool from Bool
« Reply #3 on: June 24, 2013, 08:25:13 PM »
Bool Test and Bool Flip
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

krimson0

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Set Bool from Bool
« Reply #4 on: June 24, 2013, 08:53:12 PM »
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?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Set Bool from Bool
« Reply #5 on: June 25, 2013, 02:09:55 AM »
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

krimson0

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Set Bool from Bool
« Reply #6 on: June 26, 2013, 05:51:19 PM »
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.