Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Aaddiction on May 06, 2014, 09:41:35 AM

Title: [Solved] Boolean for active object and state.
Post by: Aaddiction on May 06, 2014, 09:41:35 AM
Hello,

Could please somebody hint how to make a boolean/case for activated/deactivated object? In a single FSM I'd like to have several cases where depending on the current activated in the scene a different state to be executed.

Example:

We have Object1, Object2, Object3 and etc.

In the FSM attached to other always active object:

If Object1 is currently active -> go to State1
If Object2 is currently active -> go to State2
...
given that only one object could be active at a time.
I guess I should start with storing the active object in a variable?

Thank you.
Title: Re: Boolean for active object and state.
Post by: Lane on May 06, 2014, 11:02:20 AM
This should do the trick:

http://hutonggames.com/playmakerforum/index.php?topic=7088.0
Title: Re: [Solved] Boolean for active object and state.
Post by: Aaddiction on May 07, 2014, 04:34:18 PM
Thank you, sir! I should have searched better. Great action.