Difference between revisions of "DCS event ejection"

From DCS World Wiki - Hoggitworld.com
m (1 revision imported)
 
Line 10: Line 10:
  
 
Initiator : The unit that has ejected
 
Initiator : The unit that has ejected
 +
 +
Target : An object representing the ejector seat. NOTE it isn't a normal object and most scripts don't work on it!
  
 
|form=  The ejection event table is in the following format.  
 
|form=  The ejection event table is in the following format.  
Line 17: Line 19:
 
   time = Time,
 
   time = Time,
 
   initiator = Unit,
 
   initiator = Unit,
 +
  target = Object,
 
  }
 
  }
 
   
 
   

Revision as of 03:29, 16 April 2021


Event: S_EVENT_EJECTION Added with: 1.2.4
Enum ID: 6 Event Locality: None
Description: Occurs when a pilot ejects from an aircraft

Initiator : The unit that has ejected

Target : An object representing the ejector seat. NOTE it isn't a normal object and most scripts don't work on it!

Table Format: The ejection event table is in the following format.
Event = {
  id = 6,
  time = Time,
  initiator = Unit,
  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,