Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Detecting: player kills civilian  (Read 3122 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.