With the action names changed it's difficult to see what you are doing, however i get the feeling that the problem is your Health Manager.
After you send the Update Health Event, does the Health Manager try and get a variable from the Bullet perhaps?
Or do you have a set dammage amount already in your Health Manager?
If the Fsm moves to the next state, the send event must have fired so the problem might be on the receiving end.
Hi!
Thank you for your answer!
Yeah, I forgot that I changed the names of the actions. The actions are:
Get FSM Float - Get the current health of the player that the bullet collide with.
Float subtract - Subtract the current health with a damage variable that is fixed in the bullet (this game object)
Set FSM float - Set the new health in the health variable in the health manager
Set killer name - This has nothing to do with the calculation. it just stores who it the player
Update current health - Send event to the health manager to update the health bar.
I've attached a picture of the health manager. It is not using any variables in the bullet.
The thing is that it updates
sometimes but not every time. And if the ad the delay on the "destroy game object" everything works.
Mustn't it has something to do with the deletion of the the fireball?
I can make a GIF of the process if you would like.
(I included a picture of the health manager as well)