playMaker

Author Topic: Send event if bool is true  (Read 4481 times)

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Send event if bool is true
« on: May 19, 2014, 02:34:06 AM »
Have been trying to write a Send event (to a gameobject) if bool is true OR false action based on the existing send event and bool test actions, but I get stuck with some of the event and delay stuff.

Any hints or help?
« Last Edit: May 19, 2014, 02:36:43 AM by LampRabbit »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Send event if bool is true
« Reply #1 on: May 19, 2014, 07:31:13 AM »
Hrm, not really sure what you mean.

Can you explain a bit more or post a screenshot?
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Send event if bool is true
« Reply #2 on: May 19, 2014, 06:36:17 PM »


There ya go.

So the Blue checks if the bool variable is either true or false and if it is will send the event (if everyframe is selected it will continue to check)
The red is the send event aspect (nothing changed from the send event action)

I know this would be possible with a few states but the way I want to use this (A lot) would create a very large/mess FSM which is already getting very large.
« Last Edit: May 19, 2014, 07:01:18 PM by LampRabbit »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Send event if bool is true
« Reply #3 on: May 19, 2014, 08:53:07 PM »
Cool, actually I had wanted to do something similar when designing AI. Makes it easy to make a single FSM the delegate to subFSMs for asyncronous behaviors.

http://hutonggames.com/playmakerforum/index.php?topic=7363.0

Enjoy! =)
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Send event if bool is true
« Reply #4 on: May 19, 2014, 09:33:05 PM »
Sure will be handy! Thanks dude!