Difference between revisions of "DCS event kill"

From DCS World Wiki - Hoggitworld.com
 
(One intermediate revision by the same user not shown)
Line 18: Line 18:
 
   id = 29,
 
   id = 29,
 
   time = Time,
 
   time = Time,
   initiator = Unit,
+
   initiator = [[DCS_Class_Unit|Unit]],
   target = Unit,  
+
   weapon = [[DCS_Class_Weapon|Weapon]],
   weapon = Weapon,  
+
   target = [[DCS_Class_Unit|Unit]],
 
   weapon_name = string,  
 
   weapon_name = string,  
 
    
 
    
Line 30: Line 30:
  
 
}}
 
}}
 +
[[Category:Game Patch 2.5.6|event kill]]

Latest revision as of 07:19, 17 March 2022


Event: S_EVENT_KILL Added with: 2.5.6
Enum ID: 28 Event Locality: None
Description: Occurs on the death of a unit. Contains more and different information. Similar to unit_lost it will occur for aircraft before the aircraft crash event occurs.

Initiator : The unit that killed the target Target : Target Object Weapon : Weapon Object

Table Format: The dead event table is in the following format.
Event = {
  id = 29,
  time = Time,
  initiator = Unit,
  weapon = Weapon,
  target = Unit,
  weapon_name = string, 
 
}
Examples:
Notes:
Events: shot, hit, takeoff, land, crash, ejection, refueling, dead, pilot_dead, base_captured, mission_start, mission_end, took_control, refueling_stop, birth, human_failure, detailed_failure, engine_startup, engine_shutdown, player_enter_unit, player_leave_unit, player_comment, shooting_start, shooting_end, mark_added, mark_change, mark_remove, kill, score, unit_lost, landing_after_ejection, discard_chair_after_ejection, weapon_add, landing_quality_mark, ai_abort_mission, weapon_drop, runway_takeoff, runway_touch,