Difference between revisions of "DCS func isTargetDetected"
From DCS World Wiki - Hoggitworld.com
Line 62: | Line 62: | ||
local m = {} | local m = {} | ||
for det, enum in pairs(Controller.Detection) do | for det, enum in pairs(Controller.Detection) do | ||
− | m[m+1] = det .. " : " | + | m[#m+1] = det .. " : " |
− | m[m+1] = con:isTargetDetected(target, enum) | + | m[#m+1] = tostring(con:isTargetDetected(target, enum)) |
− | m[m+1] = "\n" | + | m[#m+1] = "\n" |
end | end | ||
trigger.action.outText(table.concat(m), 20, true) | trigger.action.outText(table.concat(m), 20, true) |