OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: LCD on 30 Oct 2007, 14:37:46

Title: Kill count
Post by: LCD on 30 Oct 2007, 14:37:46
is there any way to check how many soldiers each unit in a group have killed ? like dey do in da final score page ?

LCD OUT
Title: Re: Kill count
Post by: Wolfrug on 30 Oct 2007, 16:28:55
Only way I've found to "count kills" without using a "killed" eventHandler on every possible enemy unit is through the rating command. I.e., create an array of all the units and their ratings, and then whenever it goes up it means the unit has killed something (or has been given rating through the mission  :dunno: ).

Of course, that's a bit primitive and not very exact (i.e., can't make a list of WHAT was killed), and can potentially be demanding if checked on many units simultaneously.

Otherwise I guess simply having a "killed" eventhandler on every enemy unit and grab the data from there should work!  :good:

Wolfrug out.
Title: Re: Kill count
Post by: LeeHunt on 30 Oct 2007, 18:57:09
i know somebody did it for Operation Flashpoint, it might in one of the resource pages there or if you do a search on those forums.  There was a demo for it...