Jump to content
Sign in to follow this  
sisco55

Deathcounter + Unit List Box?

Recommended Posts

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

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×