PathCleared

Check if path through minefield is cleared

Usage: Used in 2 task(s)

Lua Implementation

-- Path Cleared
function evaluate(params)
    local path = params.path

    if not path then
        return false
    end

    return this:hasStateProperty("ClearedPath") and
           this:getStateProperty("ClearedPath") == path
end