Difference between revisions of "DCS event hit"

From DCS World Wiki - Hoggitworld.com
m (1 revision imported)
 
Line 21: Line 21:
 
   id = 2,
 
   id = 2,
 
   time = Time,
 
   time = Time,
   initiator = Unit,
+
   initiator = [[DCS_Class_Unit|Unit]],
   weapon = Weapon
+
   weapon = [[DCS_Class_Weapon|Weapon]],
   target = Object
+
   target = [[DCS_Class_Object|Object]],
 
  }
 
  }
 
   
 
   

Revision as of 01:40, 5 March 2022


Event: S_EVENT_HIT Added with: 1.2.4
Enum ID: 2 Event Locality: None
Description: Occurs whenever an object is hit by a weapon.

Initiator : The unit object the fired the weapon

Weapon: Weapon object that hit the target

Target: The Object that was hit.

Table Format: The shot event table is in the following format.
Event = {
  id = 2,
  time = Time,
  initiator = Unit,
  weapon = Weapon,
  target = Object,
}
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,