Difference between revisions of "DCS event ejection"

From DCS World Wiki - Hoggitworld.com
Line 11: Line 11:
 
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!
+
Target : An object representing the object that ejected. If the aircraft has an ejector seat then the seat itself is the target object. If this is the case then the event will be followed by [[DCS_event_discard_chair_after_ejection|discard chair after ejection]] to attain the actual pilot. For aircraft without an ejector seat the target represents the pilot object that has ejected.  
 +
 
 +
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.  

Revision as of 11:00, 22 February 2022


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

Initiator : The unit that has ejected

Target : An object representing the object that ejected. If the aircraft has an ejector seat then the seat itself is the target object. If this is the case then the event will be followed by discard chair after ejection to attain the actual pilot. For aircraft without an ejector seat the target represents the pilot object that has ejected.

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