From 842aa878ad62da94c687429b55fbdfa1e513bbef Mon Sep 17 00:00:00 2001
From: FlightControl
The EVENTDATA contains all the fields that are populated with event information before +
The Event#EVENTDATA structure contains all the fields that are populated with event information before an Event Handler method is being called by the event dispatcher. The Event Handler received the EVENTDATA object as a parameter, and can be used to investigate further the different events. There are basically 4 main categories of information stored in the EVENTDATA structure:
Initiator Unit data: Several fields documenting the initiator unit related to the event.
Target Unit data: Several fields documenting the target unit related to the event.
Weapon data: Certain events populate weapon information.
Place data: Certain events populate place information.
+ +--- This function is an Event Handling function that will be called when Tank1 is Dead. + -- EventData is an EVENTDATA structure. + -- We use the EventData.IniUnit to smoke the tank Green. + -- @param Wrapper.Unit#UNIT self + -- @param Core.Event#EVENTDATA EventData + function Tank1:OnEventDead( EventData )
+ +EventData.IniUnit:SmokeGreen() + end
Find below an overview which events populate which information categories:
(UNIT) The category of the initiator.
-
+(UNIT) The category of the initiator.
(UNIT) The coalition of the initiator.
-
+(UNIT) The coalition of the initiator.
(UNIT) The initiating {Dcs.DCSGroup#Group}.
-
+(UNIT) The initiating {DCSGroup#Group}.
(UNIT) The initiating Group name.
+(UNIT) The initiating Group name.
(UNIT/STATIC) The initiating <a href="Dcs.DCSUnit.html##(Unit)">Dcs.DCSUnit#Unit</a> or <a href="Dcs.DCSStaticObject.html##(StaticObject)">Dcs.DCSStaticObject#StaticObject</a>.
-
+(UNIT/STATIC) The initiating DCSUnit#Unit or DCSStaticObject#StaticObject.
(UNIT/STATIC) The initiating Unit name.
+(UNIT/STATIC) The initiating Unit name.
(UNIT) The initiating MOOSE wrapper <a href="Wrapper.Group.html##(GROUP)">Wrapper.Group#GROUP</a> of the initiator Group object.
-
+(UNIT) The initiating MOOSE wrapper Group#GROUP of the initiator Group object.
(UNIT) The initiating GROUP name (same as IniDCSGroupName).
-
+UNIT) The initiating GROUP name (same as IniDCSGroupName).
(UNIT) The name of the initiating player in case the Unit is a client or player slot.
-
+(UNIT) The name of the initiating player in case the Unit is a client or player slot.
(UNIT) The type name of the initiator.
-
+(UNIT) The type name of the initiator.
(UNIT/STATIC) The initiating MOOSE wrapper <a href="Wrapper.Unit.html##(UNIT)">Wrapper.Unit#UNIT</a> of the initiator Unit object.
-
+(UNIT/STATIC) The initiating MOOSE wrapper Unit#UNIT of the initiator Unit object.
(UNIT/STATIC) The initiating UNIT name (same as IniDCSUnitName).
-
+(UNIT/STATIC) The initiating UNIT name (same as IniDCSUnitName).
(UNIT) The category of the target.
-
+(UNIT) The category of the target.
(UNIT) The coalition of the target.
-
+(UNIT) The coalition of the target.
(UNIT) The target {Dcs.DCSGroup#Group}.
-
+(UNIT) The target {DCSGroup#Group}.
(UNIT) The target Group name.
+(UNIT) The target Group name.
(UNIT/STATIC) The target <a href="Dcs.DCSUnit.html##(Unit)">Dcs.DCSUnit#Unit</a> or <a href="Dcs.DCSStaticObject.html##(StaticObject)">Dcs.DCSStaticObject#StaticObject</a>.
-
+(UNIT/STATIC) The target DCSUnit#Unit or DCSStaticObject#StaticObject.
(UNIT/STATIC) The target Unit name.
+(UNIT/STATIC) The target Unit name.
(UNIT) The target MOOSE wrapper <a href="Wrapper.Group.html##(GROUP)">Wrapper.Group#GROUP</a> of the target Group object.
-
+(UNIT) The target MOOSE wrapper Group#GROUP of the target Group object.
(UNIT) The target GROUP name (same as TgtDCSGroupName).
-
+(UNIT) The target GROUP name (same as TgtDCSGroupName).
(UNIT/STATIC) The target object category ( Object.Category.UNIT or Object.Category.STATIC ).
-
+(UNIT/STATIC) The target object category ( Object.Category.UNIT or Object.Category.STATIC ).
(UNIT) The name of the target player in case the Unit is a client or player slot.
-
+(UNIT) The name of the target player in case the Unit is a client or player slot.
(UNIT) The type name of the target.
-
+(UNIT) The type name of the target.
(UNIT/STATIC) The target MOOSE wrapper <a href="Wrapper.Unit.html##(UNIT)">Wrapper.Unit#UNIT</a> of the target Unit object.
-
+(UNIT/STATIC) The target MOOSE wrapper Unit#UNIT of the target Unit object.
(UNIT/STATIC) The target UNIT name (same as TgtDCSUnitName).
-
+(UNIT/STATIC) The target UNIT name (same as TgtDCSUnitName).
(UNIT/STATIC/SCENERY) The initiating <a href="Dcs.DCSUnit.html##(Unit)">Dcs.DCSUnit#Unit</a> or <a href="Dcs.DCSStaticObject.html##(StaticObject)">Dcs.DCSStaticObject#StaticObject</a>.
-
+(UNIT/STATIC/SCENERY) The initiating Dcs.DCSUnit#Unit or Dcs.DCSStaticObject#StaticObject.
(UNIT/STATIC) The target <a href="Dcs.DCSUnit.html##(Unit)">Dcs.DCSUnit#Unit</a> or <a href="Dcs.DCSStaticObject.html##(StaticObject)">Dcs.DCSStaticObject#StaticObject</a>.
-
+(UNIT/STATIC) The target Dcs.DCSUnit#Unit or DCSStaticObject#StaticObject.
(UNIT) The category of the initiator.
-
+(UNIT) The category of the initiator.
(UNIT) The coalition of the initiator.
-
+(UNIT) The coalition of the initiator.
(UNIT) The initiating {Dcs.DCSGroup#Group}.
-
+(UNIT) The initiating {DCSGroup#Group}.
(UNIT) The initiating Group name.
+(UNIT) The initiating Group name.
(UNIT/STATIC) The initiating <a href="Dcs.DCSUnit.html##(Unit)">Dcs.DCSUnit#Unit</a> or <a href="Dcs.DCSStaticObject.html##(StaticObject)">Dcs.DCSStaticObject#StaticObject</a>.
-
+(UNIT/STATIC) The initiating DCSUnit#Unit or DCSStaticObject#StaticObject.
(UNIT/STATIC) The initiating Unit name.
+(UNIT/STATIC) The initiating Unit name.
(UNIT) The initiating MOOSE wrapper <a href="Wrapper.Group.html##(GROUP)">Wrapper.Group#GROUP</a> of the initiator Group object.
-
+(UNIT) The initiating MOOSE wrapper Group#GROUP of the initiator Group object.
(UNIT) The initiating GROUP name (same as IniDCSGroupName).
-
+UNIT) The initiating GROUP name (same as IniDCSGroupName).
(UNIT) The name of the initiating player in case the Unit is a client or player slot.
-
+(UNIT) The name of the initiating player in case the Unit is a client or player slot.
(UNIT) The type name of the initiator.
-
+(UNIT) The type name of the initiator.
(UNIT/STATIC) The initiating MOOSE wrapper <a href="Wrapper.Unit.html##(UNIT)">Wrapper.Unit#UNIT</a> of the initiator Unit object.
-
+(UNIT/STATIC) The initiating MOOSE wrapper Unit#UNIT of the initiator Unit object.
(UNIT/STATIC) The initiating UNIT name (same as IniDCSUnitName).
-
+(UNIT/STATIC) The initiating UNIT name (same as IniDCSUnitName).
(UNIT) The category of the target.
-
+(UNIT) The category of the target.
(UNIT) The coalition of the target.
-
+(UNIT) The coalition of the target.
(UNIT) The target {Dcs.DCSGroup#Group}.
-
+(UNIT) The target {DCSGroup#Group}.
(UNIT) The target Group name.
+(UNIT) The target Group name.
(UNIT/STATIC) The target <a href="Dcs.DCSUnit.html##(Unit)">Dcs.DCSUnit#Unit</a> or <a href="Dcs.DCSStaticObject.html##(StaticObject)">Dcs.DCSStaticObject#StaticObject</a>.
-
+(UNIT/STATIC) The target DCSUnit#Unit or DCSStaticObject#StaticObject.
(UNIT/STATIC) The target Unit name.
+(UNIT/STATIC) The target Unit name.
(UNIT) The target MOOSE wrapper <a href="Wrapper.Group.html##(GROUP)">Wrapper.Group#GROUP</a> of the target Group object.
-
+(UNIT) The target MOOSE wrapper Group#GROUP of the target Group object.
(UNIT) The target GROUP name (same as TgtDCSGroupName).
-
+(UNIT) The target GROUP name (same as TgtDCSGroupName).
(UNIT/STATIC) The target object category ( Object.Category.UNIT or Object.Category.STATIC ).
-
+(UNIT/STATIC) The target object category ( Object.Category.UNIT or Object.Category.STATIC ).
(UNIT) The name of the target player in case the Unit is a client or player slot.
-
+(UNIT) The name of the target player in case the Unit is a client or player slot.
(UNIT) The type name of the target.
-
+(UNIT) The type name of the target.
(UNIT/STATIC) The target MOOSE wrapper <a href="Wrapper.Unit.html##(UNIT)">Wrapper.Unit#UNIT</a> of the target Unit object.
-
+(UNIT/STATIC) The target MOOSE wrapper Unit#UNIT of the target Unit object.
(UNIT/STATIC) The target UNIT name (same as TgtDCSUnitName).
-
+(UNIT/STATIC) The target UNIT name (same as TgtDCSUnitName).
(UNIT/STATIC/SCENERY) The initiating <a href="Dcs.DCSUnit.html##(Unit)">Dcs.DCSUnit#Unit</a> or <a href="Dcs.DCSStaticObject.html##(StaticObject)">Dcs.DCSStaticObject#StaticObject</a>.
-
+(UNIT/STATIC/SCENERY) The initiating Dcs.DCSUnit#Unit or Dcs.DCSStaticObject#StaticObject.
(UNIT/STATIC) The target <a href="Dcs.DCSUnit.html##(Unit)">Dcs.DCSUnit#Unit</a> or <a href="Dcs.DCSStaticObject.html##(StaticObject)">Dcs.DCSStaticObject#StaticObject</a>.
-
+(UNIT/STATIC) The target Dcs.DCSUnit#Unit or DCSStaticObject#StaticObject.
Don't repeat the group from Take-Off till Landing and back Take-Off by ReSpawning.
-Flag that indicates if all the Groups of the SpawnGroup need to be visible when Spawned.
+When the first Spawn executes, all the Groups need to be made visible before start.