OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: Garbol87 on 02 Aug 2009, 13:08:58

Title: Detecting: player kills civilian
Post by: Garbol87 on 02 Aug 2009, 13:08:58
Hi!

I'm working on a little mission in a highly populated town and I was just wondering how can I detect if a civilian that was generated by a civi module gets killed by player? Thats a little cops&robers style mission.
Title: Re: Detecting: player kills civilian
Post by: Inkompetent on 03 Aug 2009, 17:28:40
You could always use the 'killed' eventHander (http://community.bistudio.com/wiki/Armed_Assault:_EventHandlers_List#Killed), since it tracks the killer. As long as the shooter directly hurts that civilian (be it with a bullet or explosive weapon) it should register correctly.