Home   Help Search Login Register  

Author Topic: Battle stats  (Read 771 times)

0 Members and 1 Guest are viewing this topic.

Tlokein

  • Guest
Battle stats
« on: 21 Dec 2002, 23:57:19 »
Any idea how to get a total KIA for each side at the end of the battle?

Trying to make a battalion level campaign where I deduct the losses from each side after each battle.

Thanks,
Tlok

Offline uiox

  • Contributing Member
  • **
Re:Battle stats
« Reply #1 on: 22 Dec 2002, 19:50:55 »
In editor
A trigger of your area for count all units, call triggerdetect

In init :

{_x addEventHandler ["Killed", "[_this select 0] exec ""CountDead.sqs"""] } foreach (list triggerdetect)
NbWestKilled = 0
NbEastKilled = 0

CountDead.sqs

? (side _this select 0) == west : NbWestKilled = NbWestKilled +1
? (side _this select 0) == east : NbEastKilled = NbEastKilled +1

It's example with side, u can go deeply in result with group, type etc...

Tlokein

  • Guest
Re:Battle stats
« Reply #2 on: 23 Dec 2002, 05:24:59 »
Thanks uiox, I'll give that a try.

Regards,
Tlokein

Offline benreeper

  • Members
  • *
  • I'm a llama!
Re:Battle stats
« Reply #3 on: 29 Dec 2002, 18:56:58 »
Hey uiox you have all the answers.  Thanks for helping me with dialogues.

Have you figured out the math for plotting shell trajectories from a fired mortar (gun angle).  All I have is the minimum and maximum ranges, not the betweens.

Ben

Offline uiox

  • Contributing Member
  • **
Re:Battle stats
« Reply #4 on: 29 Dec 2002, 21:02:09 »
Not all, would like specially for me...

What do you want exactly?

Make a curve? No sorry don't understand... :-[