Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:2.09

Description

Description:

Returns statistics for a specific engagement.

The following statistic types are available:

  • "enemyShotsFired" - How many shots were fired by the enemy of the specified side.
  • "shotsFired" - How many shots were fired by the specified side.
  • "enemyHits" - How many times units / vehicles were hit by the enemy of the specified side.
  • "enemyWounded" - How many times enemy units / vehicles were hit by the specified side.
  • "friendHits" - How many times units / vehicles were hit by units / vehicles from the same side.
  • "friendWounded" - How many times units / vehicles damaged units / vehicles from the same side (same value as "friendHits").
  • "detectedEnemyCount" - How many alive enemy units the specified side is aware of.

Note: Any hit counters (for example, "enemyHits") are increased whether the unit hit was alive or dead. Explosions behavior (for example, IEDs) is undefined, and may return unexpected results. Also, not all statistic types may work for vehicles.

Syntax

Syntax:engagement getEngagementStat [side, stat]
Parameters:
  • engagement: Number - Engagement ID to evaluate.
  • side: Side-2 - Side for which to return stats.
  • stat: String - Statistics type (see description).
Return Value:Number - Result for the specified engagement.

Examples

Examples:
_fired = 3 getEngagementStat [west,"shotsFired"] 

Additional Information

See also: getEngagements, getEngagementIds, getEngagementUnits, getEngagementTimeouts, AARGetEngagementStat
Multiplayer: 
Problems: 

Notes