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



Introduced in

Version:1.08

Description

Description: Returns a list of all kills caused by a player unit during a MP session.

Syntax

Syntax: VBS_kills name
Parameters:
Return Value: Array - Nested array, with one sub-array for each death, containing the following data:
  • Time of kill (seconds from mission start)
  • [name of unit that was killed, 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:
_kills = VBS_kills (name player)

may return, after killing one OPFOR:

[
  [
    158.346,
    ["Anwar Zogby",false,[2897.26,3079.52],EAST,"vbs2_af_taliban_akm"],
    ["ltd",true,[2902.29,3059.65],WEST,"VBS2_AU_Army_Grenadier_W_F88A1"],
    20.5222
  ]
]

Additional Information

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

Notes