I'm not sure how to set this up so I thought I'd pick the collective brains of the Playmaker forum!
I have, Let's say, 30 GameObjects in a scene and each one has a child called 'Phantom' When the player does something during the game, the Phantoms need to be deactivated. I need a way to send instructions to deactivate the phantoms following an in-game event so I guess 'Send Event' would be the place to start!
I need to send an event (bool toggle) which is picked up by the GameObjects parenting the phantom to tell them (the GameObjects) to deactivate their child.
How would I set this up?
Obviously, I create a global bool which changes when the event happens.
Is it possible to use this to control child objects of other GameObjects?
I have looked at the Send Event action but I don't know how to set it up. What do I put in the FSM of Send Event? Do I set the Bool up here?
Does the first state (Send Event) have a transition to the next state with perhaps 'bool changed' than then runs back to the first state every frame or does the actual event 'bool changed' sit under the 'Send Event' state so there is just a single state?
By the way, the Game Objects are put into the game using 'create object' actions during game play so they are prefabs and so are their children (the phantoms).
thanks for any advice