The EVENT class models an efficient event handling process between other classes and its units, weapons.
+
+ | EVENT.ClassID |
+
+
+ |
+
+
+ | EVENT.ClassName |
+
+
+ |
+
+
+ | EVENT:EventText(EventID) |
+
+
+ |
+
+
+ | EVENT.Events |
+
+
+ |
+
+
+ | EVENT:Init(EventID, EventClass) |
+
+ Initializes the Events structure for the event
+ |
+
+
+ | EVENT:New() |
+
+
+ |
+
+
+ | EVENT:OnBirth(EventFunction, EventSelf) |
+
+ Set a new listener for an SEVENTBIRTH event, and registers the unit born.
+ |
+
+
+ | EVENT:OnBirthForTemplate(EventGroup, EventFunction, EventSelf, EventTemplate) |
+
+ Create an OnBirth event handler for a group
+ |
+
+
+ | EVENT:OnBirthForUnit(EventDCSUnitName, EventFunction, EventSelf) |
+
+ Set a new listener for an SEVENTBIRTH event.
+ |
+
+
+ | EVENT:OnCrash(EventFunction, EventSelf) |
+
+ Set a new listener for an SEVENTCRASH event.
+ |
+
+
+ | EVENT:OnCrashForTemplate(EventGroup, EventFunction, EventSelf, EventTemplate) |
+
+ Create an OnCrash event handler for a group
+ |
+
+
+ | EVENT:OnCrashForUnit(EventDCSUnitName, EventFunction, EventSelf) |
+
+ Set a new listener for an SEVENTCRASH event.
+ |
+
+
+ | EVENT:OnDead(EventFunction, EventSelf) |
+
+ Set a new listener for an SEVENTDEAD event.
+ |
+
+
+ | EVENT:OnDeadForTemplate(EventGroup, EventFunction, EventSelf, EventTemplate) |
+
+ Create an OnDead event handler for a group
+ |
+
+
+ | EVENT:OnDeadForUnit(EventDCSUnitName, EventFunction, EventSelf) |
+
+ Set a new listener for an SEVENTDEAD event.
+ |
+
+
+ | EVENT:OnEngineShutDownForTemplate(EventTemplate, EventFunction, EventSelf) |
+
+ Create an OnDead event handler for a group
+ |
+
+
+ | EVENT:OnEngineShutDownForUnit(EventDCSUnitName, EventFunction, EventSelf) |
+
+ Set a new listener for an SEVENTENGINE_SHUTDOWN event.
+ |
+
+
+ | EVENT:OnEngineStartUpForUnit(EventDCSUnitName, EventFunction, EventSelf) |
+
+ Set a new listener for an SEVENTENGINE_STARTUP event.
+ |
+
+
+ | EVENT:OnEventForTemplate(EventTemplate, EventFunction, EventSelf, OnEventFunction) |
+
+ Create an OnDead event handler for a group
+ |
+
+
+ | EVENT:OnEventForUnit(EventDCSUnitName, EventFunction, EventSelf, EventID) |
+
+ Set a new listener for an SEVENTX event
+ |
+
+
+ | EVENT:OnEventGeneric(EventFunction, EventSelf, EventID) |
+
+ Set a new listener for an SEVENTX event independent from a unit or a weapon.
+ |
+
+
+ | EVENT:OnHit(EventFunction, EventSelf) |
+
+ Set a new listener for an SEVENTHIT event.
+ |
+
+
+ | EVENT:OnHitForUnit(EventDCSUnitName, EventFunction, EventSelf) |
+
+ Set a new listener for an SEVENTHIT event.
+ |
+
+
+ | EVENT:OnLandForTemplate(EventTemplate, EventFunction, EventSelf) |
+
+ Create an OnDead event handler for a group
+ |
+
+
+ | EVENT:OnLandForUnit(EventDCSUnitName, EventFunction, EventSelf) |
+
+ Set a new listener for an SEVENTLAND event.
+ |
+
+
+ | EVENT:OnPilotDeadForUnit(EventDCSUnitName, EventFunction, EventSelf) |
+
+ Set a new listener for an SEVENTPILOT_DEAD event.
+ |
+
+
+ | EVENT:OnShot(EventFunction, EventSelf) |
+
+ Set a new listener for an SEVENTSHOT event.
+ |
+
+
+ | EVENT:OnShotForUnit(EventDCSUnitName, EventFunction, EventSelf) |
+
+ Set a new listener for an SEVENTSHOT event for a unit.
+ |
+
+
+ | EVENT:OnTakeOffForTemplate(EventTemplate, EventFunction, EventSelf) |
+
+ Create an OnDead event handler for a group
+ |
+
+
+ | EVENT:OnTakeOffForUnit(EventDCSUnitName, EventFunction, EventSelf) |
+
+ Set a new listener for an SEVENTTAKEOFF event.
+ |
+
+
+ | EVENT:onEvent(Event) |
+
+
+ |
+
+