Jump to content
No_85_Gramps

OnDamaged/OnKilled events

Recommended Posts

This one has been cramping my brain for a few days so I thought I would ask here about the logic. Lets say I have a convoy of 4 vehicles (just for example), I need to know when all four are damaged/killed. I know I could use a counter set to 4, to be triggered by ondamaged/onkilled events. If 2 vehicles are damaged, and 2 killed, the counter would trigger. Problem is this doesn't tell me if all four have been hit. If veh 1 is damaged, the counter increases, if veh 1 is subsequently killed the counter would increase to 2, when in all actuality only 1 veh has been accounted for. This could easily cause the counter to reach 4 without them all being damaged/killed. Is my thinking correct, or am I missing something? TIA

Share this post


Link to post
Share on other sites

Easy, you put a counter on each vehicle, then feed each of those into your "4" counter. 

  • Like 1

Share this post


Link to post
Share on other sites

Do not forget to set the Damage Threshold in the Advance Parameters of your vehicle. In this way you can filter if you want to count only hard damaging hits or also light damaging hits.

Depending on hit angles and on the part of the tank damage varies.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...