jmlane / HeartsAndMinds

Fork of Arma 3 Hearts and Minds scenario—a cooperative Military Simulation mission that aims to recreate a post war environment with insurgency gameplay.
http://vdauphin.github.io/HeartsAndMinds/
2 stars 0 forks source link

Improved Hideout destruction event handler #41

Closed jmlane closed 4 years ago

jmlane commented 4 years ago

The function that creates hideouts was using a HandleDamage event handler to check for players attempting to destroy the hideout. This was checking for specific amounts of explosive damage, rather than just letting players destroy the camp by whatever means they have available to them.

This updates the event handler to the Killed event and cleans-up some of the related code.