Home   Help Search Login Register  

Author Topic: Detecting: player kills civilian  (Read 1425 times)

0 Members and 1 Guest are viewing this topic.

Offline Garbol87

  • Members
  • *
Detecting: player kills civilian
« 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.

Offline Inkompetent

  • Members
  • *
Re: Detecting: player kills civilian
« Reply #1 on: 03 Aug 2009, 17:28:40 »
You could always use the 'killed' eventHander, 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.