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



Introduced in

Version:1.08

Description

Description: Returns a list of all injuries a player unit has received during a MP session.

Syntax

Syntax: VBS_injuries name
Parameters:
Return Value: Array - Nested array, with one sub-array for each individual injury containing the following data:
  • Time of injury (seconds from mission start)
  • [name of injured unit, position, side, unit type]
  • [name of unit which inflicted the injury, position, side, unit type] (identical to injured unit, if self-inflicted - e.g. fall or crash)
  • Amount of damage inflicted
  • Ammo type that inflicted the damage (empty, in case of fall or crash)

Examples

Examples:
_injuries = VBS_injuries (name player)

might return, after being injured by an OPFOR grenade:

 [
   [
     175.028,
     ["ltd",true,[2902.64,3059.35],WEST,"VBS2_AU_Army_Grenadier_W_F88A1"],
     ["Anwar Zogby",false,[2897.26,3079.19],EAST,"vbs2_af_taliban_akm"],
     0.331764,
     "vbs2_ammo_g_rgnfrag"
   ]
 ]

Additional Information

See also: VBS killed, VBS kills
Multiplayer:Only works for player units in a MP session.
Problems: 

Notes