UAVOperational

Check if UAV is operational

Usage: Used in 14 task(s)

Lua Implementation

-- UAV Operational
function evaluate(params)
    local uav = params.uav

    if uav and uav:isValid() then
        return not uav:isDestroyed() and
               uav:getFuel() > 10 and
               uav:hasStateProperty("DataLink")
    end

    return false
end