DroneNeutralized

Check if drone has been neutralized

Usage: Used in 0 task(s)

Lua Implementation

-- Drone Neutralized
function evaluate(params)
    local drone = params.drone

    if drone then
        return drone:isDestroyed() or
               not drone:isValid() or
               (this:hasStateProperty("JammingTarget") and
                this:getStateProperty("JammingTarget") == drone:getObjectId())
    end

    return false
end

This predicate is not currently used by any tasks.