PDA

View Full Version : Casualty report



UpRight
Jan 23 2006, 08:02
Is it possible to create some sort of casualty report after the battle? Some script which counts casualties from west and east side during the mission, and then shows the results...?

Trapper
Jan 23 2006, 10:58
First you need an array of the units you want to count, something like:
eastsoldiers = units officer1 + units officer2 + units officer3 + [agentX] + [guba]

Then before the mission ends, count and store the result in a global variable:
ceast = {!alive _x} count eastsoldiers

Display a hint, radio message or titletext with the result:
hint format ["Casaulties East: %1",ceast]

Wait a moment and end the mission.

General Barron
Jan 23 2006, 22:01
Squad kill count script, by Kammak:

http://www.ofpec.com/editors/resource_view.php?id=708