playMaker

Author Topic: Send Event If Bool  (Read 1738 times)

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Send Event If Bool
« on: May 19, 2014, 05:50:40 PM »
Ref Thread:
http://hutonggames.com/playmakerforum/index.php?topic=7355.0

Depending on the status of a bool variable fire some event to any GameObject Fsm.

Feedback/revision welcome.

Update 15Jul2014: This action has been cloned in Ecosystem.
Also cleaned up a warning and restructured the Delayed Event.
« Last Edit: July 15, 2014, 12:01:35 PM by Lane »

escpodgames

  • Hero Member
  • *****
  • Posts: 686
    • View Profile
    • Assets
Re: Send Event If Bool
« Reply #1 on: May 19, 2014, 06:28:54 PM »
 ;D Thx HEAPS!
« Last Edit: May 19, 2014, 06:32:13 PM by LampRabbit »

escpodgames

  • Hero Member
  • *****
  • Posts: 686
    • View Profile
    • Assets
Re: Send Event If Bool
« Reply #2 on: May 19, 2014, 07:59:18 PM »
Line 56 should be -

if (boolVariable.Value == testBool.Value)
« Last Edit: May 19, 2014, 08:01:38 PM by LampRabbit »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Send Event If Bool
« Reply #3 on: May 20, 2014, 07:39:08 AM »
I believe you're right, I didn't use a debuglog to test if the enter was firing versus the update so I missed that. Thanks =)