mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Minor changes
This commit is contained in:
parent
c7ddd6ec35
commit
5631e2c09f
@ -473,14 +473,16 @@ do -- Event Handling
|
|||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Event handling function prototypes
|
-- Event handling function prototypes - Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
|
|
||||||
--- Occurs whenever any unit in a mission fires a weapon. But not any machine gun or autocannon based weapon, those are handled by EVENT.ShootingStart.
|
--- Occurs whenever any unit in a mission fires a weapon. But not any machine gun or autocannon based weapon, those are handled by EVENT.ShootingStart.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- @function [parent=#BASE] OnEventShot
|
-- @function [parent=#BASE] OnEventShot
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs whenever an object is hit by a weapon.
|
--- Occurs whenever an object is hit by a weapon.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- initiator : The unit object the fired the weapon
|
-- initiator : The unit object the fired the weapon
|
||||||
-- weapon: Weapon object that hit the target
|
-- weapon: Weapon object that hit the target
|
||||||
-- target: The Object that was hit.
|
-- target: The Object that was hit.
|
||||||
@ -489,6 +491,7 @@ do -- Event Handling
|
|||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when an aircraft takes off from an airbase, farp, or ship.
|
--- Occurs when an aircraft takes off from an airbase, farp, or ship.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- initiator : The unit that tookoff
|
-- initiator : The unit that tookoff
|
||||||
-- place: Object from where the AI took-off from. Can be an Airbase Object, FARP, or Ships
|
-- place: Object from where the AI took-off from. Can be an Airbase Object, FARP, or Ships
|
||||||
-- @function [parent=#BASE] OnEventTakeoff
|
-- @function [parent=#BASE] OnEventTakeoff
|
||||||
@ -496,6 +499,7 @@ do -- Event Handling
|
|||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when an aircraft lands at an airbase, farp or ship
|
--- Occurs when an aircraft lands at an airbase, farp or ship
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- initiator : The unit that has landed
|
-- initiator : The unit that has landed
|
||||||
-- place: Object that the unit landed on. Can be an Airbase Object, FARP, or Ships
|
-- place: Object that the unit landed on. Can be an Airbase Object, FARP, or Ships
|
||||||
-- @function [parent=#BASE] OnEventLand
|
-- @function [parent=#BASE] OnEventLand
|
||||||
@ -503,101 +507,118 @@ do -- Event Handling
|
|||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when any aircraft crashes into the ground and is completely destroyed.
|
--- Occurs when any aircraft crashes into the ground and is completely destroyed.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- initiator : The unit that has crashed
|
-- initiator : The unit that has crashed
|
||||||
-- @function [parent=#BASE] OnEventCrash
|
-- @function [parent=#BASE] OnEventCrash
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when a pilot ejects from an aircraft
|
--- Occurs when a pilot ejects from an aircraft
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- initiator : The unit that has ejected
|
-- initiator : The unit that has ejected
|
||||||
-- @function [parent=#BASE] OnEventEjection
|
-- @function [parent=#BASE] OnEventEjection
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when an aircraft connects with a tanker and begins taking on fuel.
|
--- Occurs when an aircraft connects with a tanker and begins taking on fuel.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- initiator : The unit that is receiving fuel.
|
-- initiator : The unit that is receiving fuel.
|
||||||
-- @function [parent=#BASE] OnEventRefueling
|
-- @function [parent=#BASE] OnEventRefueling
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when an object is dead.
|
--- Occurs when an object is dead.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- initiator : The unit that is dead.
|
-- initiator : The unit that is dead.
|
||||||
-- @function [parent=#BASE] OnEventDead
|
-- @function [parent=#BASE] OnEventDead
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when an object is completely destroyed.
|
--- Occurs when an Event for an object is triggered.
|
||||||
-- initiator : The unit that is was destroyed.
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
|
-- initiator : The unit that triggered the event.
|
||||||
-- @function [parent=#BASE] OnEvent
|
-- @function [parent=#BASE] OnEvent
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when the pilot of an aircraft is killed. Can occur either if the player is alive and crashes or if a weapon kills the pilot without completely destroying the plane.
|
--- Occurs when the pilot of an aircraft is killed. Can occur either if the player is alive and crashes or if a weapon kills the pilot without completely destroying the plane.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- initiator : The unit that the pilot has died in.
|
-- initiator : The unit that the pilot has died in.
|
||||||
-- @function [parent=#BASE] OnEventPilotDead
|
-- @function [parent=#BASE] OnEventPilotDead
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when a ground unit captures either an airbase or a farp.
|
--- Occurs when a ground unit captures either an airbase or a farp.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- initiator : The unit that captured the base
|
-- initiator : The unit that captured the base
|
||||||
-- place: The airbase that was captured, can be a FARP or Airbase. When calling place:getCoalition() the faction will already be the new owning faction.
|
-- place: The airbase that was captured, can be a FARP or Airbase. When calling place:getCoalition() the faction will already be the new owning faction.
|
||||||
-- @function [parent=#BASE] OnEventBaseCaptured
|
-- @function [parent=#BASE] OnEventBaseCaptured
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when a mission starts
|
--- Occurs when a mission starts
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- @function [parent=#BASE] OnEventMissionStart
|
-- @function [parent=#BASE] OnEventMissionStart
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when a mission ends
|
--- Occurs when a mission ends
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- @function [parent=#BASE] OnEventMissionEnd
|
-- @function [parent=#BASE] OnEventMissionEnd
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when an aircraft is finished taking fuel.
|
--- Occurs when an aircraft is finished taking fuel.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- initiator : The unit that was receiving fuel.
|
-- initiator : The unit that was receiving fuel.
|
||||||
-- @function [parent=#BASE] OnEventRefuelingStop
|
-- @function [parent=#BASE] OnEventRefuelingStop
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when any object is spawned into the mission.
|
--- Occurs when any object is spawned into the mission.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- initiator : The unit that was spawned
|
-- initiator : The unit that was spawned
|
||||||
-- @function [parent=#BASE] OnEventBirth
|
-- @function [parent=#BASE] OnEventBirth
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when any system fails on a human controlled aircraft.
|
--- Occurs when any system fails on a human controlled aircraft.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- initiator : The unit that had the failure
|
-- initiator : The unit that had the failure
|
||||||
-- @function [parent=#BASE] OnEventHumanFailure
|
-- @function [parent=#BASE] OnEventHumanFailure
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when any aircraft starts its engines.
|
--- Occurs when any aircraft starts its engines.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- initiator : The unit that is starting its engines.
|
-- initiator : The unit that is starting its engines.
|
||||||
-- @function [parent=#BASE] OnEventEngineStartup
|
-- @function [parent=#BASE] OnEventEngineStartup
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when any aircraft shuts down its engines.
|
--- Occurs when any aircraft shuts down its engines.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- initiator : The unit that is stopping its engines.
|
-- initiator : The unit that is stopping its engines.
|
||||||
-- @function [parent=#BASE] OnEventEngineShutdown
|
-- @function [parent=#BASE] OnEventEngineShutdown
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when any player assumes direct control of a unit.
|
--- Occurs when any player assumes direct control of a unit. Note - not Mulitplayer safe. Use PlayerEnterAircraft.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- initiator : The unit that is being taken control of.
|
-- initiator : The unit that is being taken control of.
|
||||||
-- @function [parent=#BASE] OnEventPlayerEnterUnit
|
-- @function [parent=#BASE] OnEventPlayerEnterUnit
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when any player relieves control of a unit to the AI.
|
--- Occurs when any player relieves control of a unit to the AI.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- initiator : The unit that the player left.
|
-- initiator : The unit that the player left.
|
||||||
-- @function [parent=#BASE] OnEventPlayerLeaveUnit
|
-- @function [parent=#BASE] OnEventPlayerLeaveUnit
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when any unit begins firing a weapon that has a high rate of fire. Most common with aircraft cannons (GAU-8), autocannons, and machine guns.
|
--- Occurs when any unit begins firing a weapon that has a high rate of fire. Most common with aircraft cannons (GAU-8), autocannons, and machine guns.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- initiator : The unit that is doing the shooting.
|
-- initiator : The unit that is doing the shooting.
|
||||||
-- target: The unit that is being targeted.
|
-- target: The unit that is being targeted.
|
||||||
-- @function [parent=#BASE] OnEventShootingStart
|
-- @function [parent=#BASE] OnEventShootingStart
|
||||||
@ -605,24 +626,28 @@ do -- Event Handling
|
|||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when any unit stops firing its weapon. Event will always correspond with a shooting start event.
|
--- Occurs when any unit stops firing its weapon. Event will always correspond with a shooting start event.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- initiator : The unit that was doing the shooting.
|
-- initiator : The unit that was doing the shooting.
|
||||||
-- @function [parent=#BASE] OnEventShootingEnd
|
-- @function [parent=#BASE] OnEventShootingEnd
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when a new mark was added.
|
--- Occurs when a new mark was added.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- MarkID: ID of the mark.
|
-- MarkID: ID of the mark.
|
||||||
-- @function [parent=#BASE] OnEventMarkAdded
|
-- @function [parent=#BASE] OnEventMarkAdded
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when a mark was removed.
|
--- Occurs when a mark was removed.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- MarkID: ID of the mark.
|
-- MarkID: ID of the mark.
|
||||||
-- @function [parent=#BASE] OnEventMarkRemoved
|
-- @function [parent=#BASE] OnEventMarkRemoved
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when a mark text was changed.
|
--- Occurs when a mark text was changed.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- MarkID: ID of the mark.
|
-- MarkID: ID of the mark.
|
||||||
-- @function [parent=#BASE] OnEventMarkChange
|
-- @function [parent=#BASE] OnEventMarkChange
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
@ -639,11 +664,13 @@ do -- Event Handling
|
|||||||
|
|
||||||
--- Occurs when any modification to the "Score" as seen on the debrief menu would occur.
|
--- Occurs when any modification to the "Score" as seen on the debrief menu would occur.
|
||||||
-- There is no information on what values the score was changed to. Event is likely similar to player_comment in this regard.
|
-- There is no information on what values the score was changed to. Event is likely similar to player_comment in this regard.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- @function [parent=#BASE] OnEventScore
|
-- @function [parent=#BASE] OnEventScore
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs on the death of a unit. Contains more and different information. Similar to unit_lost it will occur for aircraft before the aircraft crash event occurs.
|
--- Occurs on the death of a unit. Contains more and different information. Similar to unit_lost it will occur for aircraft before the aircraft crash event occurs.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
--
|
--
|
||||||
-- * initiator: The unit that killed the target
|
-- * initiator: The unit that killed the target
|
||||||
-- * target: Target Object
|
-- * target: Target Object
|
||||||
@ -655,11 +682,13 @@ do -- Event Handling
|
|||||||
|
|
||||||
--- Occurs when any modification to the "Score" as seen on the debrief menu would occur.
|
--- Occurs when any modification to the "Score" as seen on the debrief menu would occur.
|
||||||
-- There is no information on what values the score was changed to. Event is likely similar to player_comment in this regard.
|
-- There is no information on what values the score was changed to. Event is likely similar to player_comment in this regard.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- @function [parent=#BASE] OnEventScore
|
-- @function [parent=#BASE] OnEventScore
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs when the game thinks an object is destroyed.
|
--- Occurs when the game thinks an object is destroyed.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
--
|
--
|
||||||
-- * initiator: The unit that is was destroyed.
|
-- * initiator: The unit that is was destroyed.
|
||||||
--
|
--
|
||||||
@ -668,6 +697,7 @@ do -- Event Handling
|
|||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Occurs shortly after the landing animation of an ejected pilot touching the ground and standing up. Event does not occur if the pilot lands in the water and sub combs to Davey Jones Locker.
|
--- Occurs shortly after the landing animation of an ejected pilot touching the ground and standing up. Event does not occur if the pilot lands in the water and sub combs to Davey Jones Locker.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
--
|
--
|
||||||
-- * initiator: Static object representing the ejected pilot. Place : Aircraft that the pilot ejected from.
|
-- * initiator: Static object representing the ejected pilot. Place : Aircraft that the pilot ejected from.
|
||||||
-- * place: may not return as a valid object if the aircraft has crashed into the ground and no longer exists.
|
-- * place: may not return as a valid object if the aircraft has crashed into the ground and no longer exists.
|
||||||
@ -678,37 +708,44 @@ do -- Event Handling
|
|||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Paratrooper landing.
|
--- Paratrooper landing.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- @function [parent=#BASE] OnEventParatrooperLanding
|
-- @function [parent=#BASE] OnEventParatrooperLanding
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Discard chair after ejection.
|
--- Discard chair after ejection.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- @function [parent=#BASE] OnEventDiscardChairAfterEjection
|
-- @function [parent=#BASE] OnEventDiscardChairAfterEjection
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Weapon add. Fires when entering a mission per pylon with the name of the weapon (double pylons not counted, infinite wep reload not counted.
|
--- Weapon add. Fires when entering a mission per pylon with the name of the weapon (double pylons not counted, infinite wep reload not counted.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- @function [parent=#BASE] OnEventParatrooperLanding
|
-- @function [parent=#BASE] OnEventParatrooperLanding
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Trigger zone.
|
--- Trigger zone.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- @function [parent=#BASE] OnEventTriggerZone
|
-- @function [parent=#BASE] OnEventTriggerZone
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- Landing quality mark.
|
--- Landing quality mark.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- @function [parent=#BASE] OnEventLandingQualityMark
|
-- @function [parent=#BASE] OnEventLandingQualityMark
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
--- BDA.
|
--- BDA.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- @function [parent=#BASE] OnEventBDA
|
-- @function [parent=#BASE] OnEventBDA
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
-- @param Core.Event#EVENTDATA EventData The EventData structure.
|
||||||
|
|
||||||
|
|
||||||
--- Occurs when a player enters a slot and takes control of an aircraft.
|
--- Occurs when a player enters a slot and takes control of an aircraft.
|
||||||
|
-- Have a look at the class @{Core.EVENT#EVENT} as these are just the prototypes.
|
||||||
-- **NOTE**: This is a workaround of a long standing DCS bug with the PLAYER_ENTER_UNIT event.
|
-- **NOTE**: This is a workaround of a long standing DCS bug with the PLAYER_ENTER_UNIT event.
|
||||||
-- initiator : The unit that is being taken control of.
|
-- initiator : The unit that is being taken control of.
|
||||||
-- @function [parent=#BASE] OnEventPlayerEnterAircraft
|
-- @function [parent=#BASE] OnEventPlayerEnterAircraft
|
||||||
@ -834,8 +871,7 @@ end
|
|||||||
|
|
||||||
world.onEvent(Event)
|
world.onEvent(Event)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- TODO: Complete DCS#Event structure.
|
|
||||||
--- The main event handling function... This function captures all events generated for the class.
|
--- The main event handling function... This function captures all events generated for the class.
|
||||||
-- @param #BASE self
|
-- @param #BASE self
|
||||||
-- @param DCS#Event event
|
-- @param DCS#Event event
|
||||||
|
|||||||
@ -2321,41 +2321,44 @@ function GROUP:GetAttribute()
|
|||||||
local unarmedship=self:HasAttribute("Unarmed ships")
|
local unarmedship=self:HasAttribute("Unarmed ships")
|
||||||
|
|
||||||
|
|
||||||
-- Define attribute. Order is important.
|
-- Define attribute. Order of attack is important.
|
||||||
if transportplane then
|
if fighter then
|
||||||
attribute=GROUP.Attribute.AIR_TRANSPORTPLANE
|
|
||||||
elseif awacs then
|
|
||||||
attribute=GROUP.Attribute.AIR_AWACS
|
|
||||||
elseif fighter then
|
|
||||||
attribute=GROUP.Attribute.AIR_FIGHTER
|
attribute=GROUP.Attribute.AIR_FIGHTER
|
||||||
elseif bomber then
|
elseif bomber then
|
||||||
attribute=GROUP.Attribute.AIR_BOMBER
|
attribute=GROUP.Attribute.AIR_BOMBER
|
||||||
|
elseif awacs then
|
||||||
|
attribute=GROUP.Attribute.AIR_AWACS
|
||||||
|
elseif transportplane then
|
||||||
|
attribute=GROUP.Attribute.AIR_TRANSPORTPLANE
|
||||||
elseif tanker then
|
elseif tanker then
|
||||||
attribute=GROUP.Attribute.AIR_TANKER
|
attribute=GROUP.Attribute.AIR_TANKER
|
||||||
|
-- helos
|
||||||
|
elseif attackhelicopter then
|
||||||
|
attribute=GROUP.Attribute.AIR_ATTACKHELO
|
||||||
elseif transporthelo then
|
elseif transporthelo then
|
||||||
attribute=GROUP.Attribute.AIR_TRANSPORTHELO
|
attribute=GROUP.Attribute.AIR_TRANSPORTHELO
|
||||||
elseif attackhelicopter then
|
|
||||||
attribute=GROUP.Attribute.AIR_ATTACKHELO
|
|
||||||
elseif uav then
|
elseif uav then
|
||||||
attribute=GROUP.Attribute.AIR_UAV
|
attribute=GROUP.Attribute.AIR_UAV
|
||||||
elseif apc then
|
-- ground - order of attack
|
||||||
attribute=GROUP.Attribute.GROUND_APC
|
|
||||||
elseif infantry then
|
|
||||||
attribute=GROUP.Attribute.GROUND_INFANTRY
|
|
||||||
elseif artillery then
|
|
||||||
attribute=GROUP.Attribute.GROUND_ARTILLERY
|
|
||||||
elseif tank then
|
|
||||||
attribute=GROUP.Attribute.GROUND_TANK
|
|
||||||
elseif aaa then
|
|
||||||
attribute=GROUP.Attribute.GROUND_AAA
|
|
||||||
elseif ewr then
|
elseif ewr then
|
||||||
attribute=GROUP.Attribute.GROUND_EWR
|
attribute=GROUP.Attribute.GROUND_EWR
|
||||||
elseif sam then
|
elseif sam then
|
||||||
attribute=GROUP.Attribute.GROUND_SAM
|
attribute=GROUP.Attribute.GROUND_SAM
|
||||||
|
elseif aaa then
|
||||||
|
attribute=GROUP.Attribute.GROUND_AAA
|
||||||
|
elseif artillery then
|
||||||
|
attribute=GROUP.Attribute.GROUND_ARTILLERY
|
||||||
|
elseif tank then
|
||||||
|
attribute=GROUP.Attribute.GROUND_TANK
|
||||||
|
elseif apc then
|
||||||
|
attribute=GROUP.Attribute.GROUND_APC
|
||||||
|
elseif infantry then
|
||||||
|
attribute=GROUP.Attribute.GROUND_INFANTRY
|
||||||
elseif truck then
|
elseif truck then
|
||||||
attribute=GROUP.Attribute.GROUND_TRUCK
|
attribute=GROUP.Attribute.GROUND_TRUCK
|
||||||
elseif train then
|
elseif train then
|
||||||
attribute=GROUP.Attribute.GROUND_TRAIN
|
attribute=GROUP.Attribute.GROUND_TRAIN
|
||||||
|
-- ships
|
||||||
elseif aircraftcarrier then
|
elseif aircraftcarrier then
|
||||||
attribute=GROUP.Attribute.NAVAL_AIRCRAFTCARRIER
|
attribute=GROUP.Attribute.NAVAL_AIRCRAFTCARRIER
|
||||||
elseif warship then
|
elseif warship then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user