DCS event ejection

From DCS World Wiki - Hoggitworld.com
Revision as of 06:53, 17 March 2022 by Grimes (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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 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, runway_takeoff, runway_touch,