//Script for Console to use on Hashmel Towers

::towerCount <- 2

function areTowersDown()
{
    //Fire different Outputs for 0/1/2 towers down
    if(towerCount == 0)
    {
        DoEntFire("Hashmel_Tower_Case", "InValue", "1", 0.00, self, self)
    }
    else if(towerCount == 1)
    {
        DoEntFire("Hashmel_Tower_Case", "InValue", "2", 0.00, self, self)
    }
    else
    {
        DoEntFire("Hashmel_Tower_Case", "InValue", "3", 0.00, self, self)
    }
    //reset towerCount
    towerCount = 2
}

function incrementTowerCount()
{
    towerCount-=1
}