Working on a Detect Bodies script, I came up with a couple of questions.
1. - In the eventhandler "killed":
_this select 0 is the unit that got killed
_this select 1 is the killer and that starts my question.
Who or what value/variable is returned when the unit is either killed by a traffic accident or drops off the roof of a building? In OFP it allways said "unit killed by friendlyFire" in those situations, in ArmA I don't know.
Is friendlyFire == CIVILIAN or what? Can you determine the "side" of the killer even if death by accident?
2. - Are eventhandlers "passive" in terms of demanding PC power until they are activated, or are they constantly checking if the conditions are true or false, just like a trigger. Wondering because of desire to not affect performance in missions.
EDIT: Googled eventhandler "killed" and found this on the Wiki:
* unit: Object - Object the event handler is assigned to
* killer: Object - Object that killed the unit
Contains the unit itself in case of collisions.
Guess that answers the first question.
Laggy