PDA

View Full Version : Deathcounter + Unit List Box?



sisco55
Apr 6 2008, 16:22
How would I make a a script where you can see the total number of units killed in the mission so far in a box/window that comes up when you do something in the radio or walk into a certain area on the map?

Also how would I make the same thing as above except that it would list some unit names and tell weather they were live or dead?

Example-

Pvt. John Doe - KIA
Pvt. Jane Doe- Alive

sisco55
Apr 6 2008, 23:39
Anyone?

DespairsRay
Sep 27 2008, 04:41
I would like to know also.

Like a visual cue box. To see how many have died in total and how many on each side.

Pulverizer
Oct 5 2008, 08:27
1. Make arrays of units with triggers like {uEast=uEast+crew _x}foreach thislist
2. Store total number for each side like totalEast=count uEast
3. Add killed eventhandlers like {_x  addEventHandler[{Killed},{killedEast=killedEast+1}];} forEach uEast
4. Make radio trigger to output stuff like hint format [{%1 of %2 east killed}, killedEast, totalEast]

Kendo J
Oct 6 2008, 14:11
What the pulveriser said is almost exactly what I am doing... at your base a guy has a action command you hit and a hint box appears with over all casualties!

Messege me and I will send the scripts!

it also has event handlers for the vehicles so when kill a tank you look at your casualty figures the three men in the tank are each given an infantry casualty +1 and the tank is armour casualty +1

so you have

Russian casualties: 3
Armour: 1

Kendo

Kendo J
Oct 17 2008, 10:18
here is the script over at OFPEC

http://www.ofpec.com/forum....ch=3328 (http://www.ofpec.com/forum/index.php?action=dlattach;topic=32417.0;attach=3328)

Kendo

DespairsRay
Dec 4 2008, 04:01
Thank you guys so much.

Kendo J
Dec 6 2008, 13:34
I hope the script is what you are looking for?

It has been post on Ofpec for a while and not many people have been interested.... anyways good luck with it.

Kendo

Kendo J
Feb 22 2012, 11:58
Hello, this maybe a hopeless plea... BUT does anyone have my old script for this?

I am trying to recreate what I did in OFP in Arma, excpet i have none of the scripts and the link although at OFPEC doesnt work.

Also looking for my Dynamic mission template for OFP.

Please help

Kendo!