Version 2,27

The Debugger XRef
This commit is contained in:
Christian Franz
2024-07-04 11:03:00 +02:00
parent 0513fac2f2
commit 76083ff2b6
14 changed files with 641 additions and 42 deletions

View File

@@ -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)