I am working on another script of my own, and one of things I need for it to work is to combine the HP of multiple characters.
So if you had 3 actors in a battle, they would each get to fight but would have only 1 HP bar to share between them. All enemies would hit that bar and once it was empty all 3 actors would die and game over.
And if possible the same for enemies.
The HP can either be taken by adding all the actors together or from some other variable, as long as they share it.
It's going to be used as part of a vehicle combat script, to allow the crew to act independently with different weapons or abilities but all hits are to the single HP of the ship itself.
Any help at all with this would be great.
So if you had 3 actors in a battle, they would each get to fight but would have only 1 HP bar to share between them. All enemies would hit that bar and once it was empty all 3 actors would die and game over.
And if possible the same for enemies.
The HP can either be taken by adding all the actors together or from some other variable, as long as they share it.
It's going to be used as part of a vehicle combat script, to allow the crew to act independently with different weapons or abilities but all hits are to the single HP of the ship itself.
Any help at all with this would be great.