mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
event backfixed
This commit is contained in:
parent
990f748e42
commit
421005a3b6
@ -1114,9 +1114,10 @@ function EVENT:onEvent( Event )
|
||||
Event.TgtTypeName = Event.TgtDCSUnit:getTypeName()
|
||||
end
|
||||
|
||||
env.info("FF I am here first")
|
||||
if Event.TgtObjectCategory == Object.Category.STATIC then
|
||||
env.info("FF I am here")
|
||||
BASE:T({Event = Event})
|
||||
--[[
|
||||
Event.TgtDCSUnit = Event.target
|
||||
Event.TgtDCSUnitName = Event.TgtDCSUnit:getName()
|
||||
Event.TgtUnitName = Event.TgtDCSUnitName
|
||||
@ -1124,8 +1125,8 @@ function EVENT:onEvent( Event )
|
||||
Event.TgtCoalition = Event.TgtDCSUnit:getCoalition()
|
||||
Event.TgtCategory = Event.TgtDCSUnit:getDesc().category
|
||||
Event.TgtTypeName = Event.TgtDCSUnit:getTypeName()
|
||||
--]]
|
||||
-- Same as for Event Initiator above 2.7 issue
|
||||
--[[
|
||||
Event.TgtDCSUnit = Event.target
|
||||
local ID=Event.initiator.id_
|
||||
Event.TgtDCSUnitName = string.format("Ejected Pilot ID %s", tostring(ID))
|
||||
@ -1134,6 +1135,7 @@ function EVENT:onEvent( Event )
|
||||
Event.TgtCoalition = Event.IniCoalition
|
||||
Event.TgtCategory = Event.IniCategory
|
||||
Event.TgtTypeName = "Ejected Pilot"
|
||||
]]
|
||||
end
|
||||
|
||||
if Event.TgtObjectCategory == Object.Category.SCENERY then
|
||||
|
||||
@ -56,6 +56,7 @@
|
||||
-- @field #number callsignName Callsign name.
|
||||
-- @field #number callsignNumber Callsign number.
|
||||
-- @field #boolean despawnAfterLanding If true, group is despawned after landed at an airbase.
|
||||
-- @field #number RTBRecallCount Number that counts RTB calls.
|
||||
--
|
||||
-- @extends Ops.OpsGroup#OPSGROUP
|
||||
|
||||
@ -145,6 +146,7 @@ FLIGHTGROUP = {
|
||||
Twaiting = nil,
|
||||
menu = nil,
|
||||
isHelo = nil,
|
||||
RTBRecallCount = 0,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user