BuildingSecure

Check if building is secure

Usage: Used in 7 task(s)

Lua Implementation

-- Building Secure
function evaluate(params)
    local building = params.building_location

    if not building then
        return false
    end

    return this:hasStateProperty("BuildingSecured") and
           this:getStateProperty("BuildingSecured") == true
end