I asked a few days ago, about how you could create two units shooting oneanother in a strategygame, and while all my questions came to a satisfying conclusion, I am now stuck with annother question:
If ship A shoots at ship B and does 30 Damage out of 100 health, how do I get my fsm's to make this? So far I tried to do it by event, which works fine if you only have one or two diffrent damage values, what I want to know is, how I can comunicate exact values between two fsm's.
It is for a 3d strategy game, and I would like every unit to have a dedicated fsm for their health and not use global variables for health.