Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: escpodgames on May 19, 2014, 02:34:06 AM

Title: Send event if bool is true
Post by: escpodgames 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?
Title: Re: Send event if bool is true
Post by: Lane 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?
Title: Re: Send event if bool is true
Post by: escpodgames on May 19, 2014, 06:36:17 PM
(http://s9.postimg.org/qee05nyqn/Send_Event_If_Bool.jpg)

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.
Title: Re: Send event if bool is true
Post by: Lane 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! =)
Title: Re: Send event if bool is true
Post by: escpodgames on May 19, 2014, 09:33:05 PM
Sure will be handy! Thanks dude!