mirror of
https://github.com/weyne85/DML.git
synced 2025-10-29 16:57:49 +00:00
Version 2,27
The Debugger XRef
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
cfxObjectDestructDetector = {}
|
||||
cfxObjectDestructDetector.version = "2.0.2"
|
||||
cfxObjectDestructDetector.version = "2.0.3"
|
||||
cfxObjectDestructDetector.verbose = false
|
||||
cfxObjectDestructDetector.requiredLibs = {
|
||||
"dcsCommon", -- always
|
||||
@@ -22,6 +22,7 @@ cfxObjectDestructDetector.requiredLibs = {
|
||||
API for PlayerScore to pass back redScore/blueScore
|
||||
if objects was killed by player
|
||||
verbosity bug fixed after kill (ref to old ID)
|
||||
2.0.3 if no output! given,a warning and default are given
|
||||
--]]--
|
||||
|
||||
cfxObjectDestructDetector.objectZones = {}
|
||||
@@ -81,6 +82,9 @@ function cfxObjectDestructDetector.processObjectDestructZone(aZone)
|
||||
aZone.outDestroyFlag = aZone:getStringFromZoneProperty("destroyed!", "*none")
|
||||
elseif aZone:hasProperty("objectDestroyed!") then
|
||||
aZone.outDestroyFlag = aZone:getStringFromZoneProperty( "objectDestroyed!", "*none")
|
||||
else
|
||||
trigger.action.outText("+++ODD: WARNING: destrcut detector <" .. aZone.name .. "> has no output! attribute", 30)
|
||||
aZone.outDestroyFlag = "sorryIforgot" -- so saving works
|
||||
end
|
||||
|
||||
--PlayerScore interface (data)
|
||||
|
||||
Reference in New Issue
Block a user