Join our Discord Channel
You can set up a global transition that ends the game and when the player dies you send global broadcast to everything in the game to go to that event.So basically in every FSM you will have a death state with a global transition attached to it that will be activated when the player dies by sending that broadcast event.
The send event action has an option to broadcast. The rest would be through states and global events.
on the set up state.
Did you right click on the state and set up the transition as a global transition? So the transition will be set on top of the state instead of the bottom. Try that if you haven't with the broadcast.
Can you post a picture of your set up?
Check out this tutorial which can better explain events being sent to other objects with the broadcast.//www.youtube.com/watch?v=dgdxWJcuaWoSo that each gameObject has the transition kill_player that stops movement, health, etc.