playMaker

Author Topic: [Solved] Boolean for active object and state.  (Read 1606 times)

Aaddiction

  • Full Member
  • ***
  • Posts: 166
[Solved] Boolean for active object and state.
« 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.
« Last Edit: May 07, 2014, 04:32:07 PM by Lockon302 »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Boolean for active object and state.
« Reply #1 on: May 06, 2014, 11:02:20 AM »
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Aaddiction

  • Full Member
  • ***
  • Posts: 166
Re: [Solved] Boolean for active object and state.
« Reply #2 on: May 07, 2014, 04:34:18 PM »
Thank you, sir! I should have searched better. Great action.