Difference between revisions of "DCS event hit"

From DCS World Wiki - Hoggitworld.com
m (1 revision imported)
 
 
(One intermediate revision by the same user not shown)
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]],
 
  }
 
  }
 
   
 
   
Line 29: Line 29:
 
|exam=
 
|exam=
  
|notes=
+
|notes= In multiplayer there are instances where the weapon object is not returned due to desync or timing issues.
  
  

Latest revision as of 22:08, 8 February 2024


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: In multiplayer there are instances where the weapon object is not returned due to desync or timing issues.
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,