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



Introduced in

Version:1.08

Description

Description: Returns a list of all deaths that occurred to a player unit during a MP session.

Syntax

Syntax: VBS_killed name
Parameters:
Return Value: Array - Nested array, with one sub-array for each death, containing the following data:
  • Time of death (seconds from mission start)
  • [name of unit that died, position, side, unit type]
  • [name of unit which caused the death, position, side, unit type] (identical to dead unit, if self-inflicted - e.g. fall or crash)
  • Distance between dead unit and killer

Examples

Examples:
_deaths = VBS_killed (name player)

may return, if first killed by OPFOR, and then by himself, through a fall:

[
  [
    2075.78,
    ["ltd",true,[2898.37,3071.24],WEST,"VBS2_AU_Army_Grenadier_W_F88A1"],
    ["Anwar Zogby",false,[2897.26,3079.19],EAST,"vbs2_af_taliban_akm"],
    8.0807
  ],
  [
    2337.71,
    ["ltd",true,[2879.7,2868.05],WEST,"VBS2_AU_Army_Grenadier_W_F88A1"],
    ["ltd",true,[2879.7,2868.05],WEST,"VBS2_AU_Army_Grenadier_W_F88A1"],
    0
  ]
]

Additional Information

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

Notes