DCS event hit

From DCS World Wiki - Hoggitworld.com
Revision as of 01:40, 5 March 2022 by Grimes (talk | contribs)


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,