Hi all
In my game I have 2 trees which are the same. They are both active. I want them to have health. In Aoe, RoN etc each tree has 50 health. when the health reaches 0 then the tree falls over.
I've set up my man to move and keep hotspots in front of him. I've set up the trees to fall when the alterable value reaches 0.(Start of level it is 50). Every second while the guy is overlapping the tree it subtracts 1 from the tree's AV.
This all works fine until I put another (identical) tree in the game. Then when the AV reaches 0, both trees fall down. I can make it so only the overlapping tree falls down but (as it gives the other tree the same AV) then when I overlap the second tree it falls down immediately.
So is there any way of setting it up (without making each tree different) that each tree has it's own health? This way if I chop 50 off tree A then tree B still has 50 health?
(Hope that makes sense)