Arma3 - Zombie Attack

From Scottworld
Jump to navigation Jump to search

Condition

daytime > 0 && daytime < 0.1

Activation

hint "The Lab is under attack !!"; 
_now = date;
_day = _now select 2;
switch _day do {
    case 0;
    default {hint "ZDay Very BAD"; 
Zspawner_1 setPosASL [(getMarkerPos "Zspawn_1") select 0, (getMarkerPos "Zspawn_1") select 1,0]; 
Zspawner_2 setPosASL [(getMarkerPos "Zspawn_2") select 0, (getMarkerPos "Zspawn_2") select 1,0]; 
Zspawner_3 setPosASL [(getMarkerPos "Zspawn_3") select 0, (getMarkerPos "Zspawn_3") select 1,0]; 
Zspawner_4 setPosASL [(getMarkerPos "Zspawn_4") select 0, (getMarkerPos "Zspawn_4") select 1,0]; 
Zspawner_5 setPosASL [(getMarkerPos "Zspawn_5") select 0, (getMarkerPos "Zspawn_5") select 1,0]; 
Zspawner_6 setPosASL [(getMarkerPos "Zspawn_6") select 0, (getMarkerPos "Zspawn_6") select 1,0]; 
Zspawner_7 setPosASL [(getMarkerPos "Zspawn_7") select 0, (getMarkerPos "Zspawn_7") select 1,0];
};
    case 1: { hint "ZDay +1";
Zspawner_1 setPosASL [(getMarkerPos "Zspawn_1") select 0,(getMarkerPos "Zspawn_1") select 1,0];
}; 
    case 2: {hint "ZDay +2"; 
Zspawner_1 setPosASL [(getMarkerPos "Zspawn_1") select 0, (getMarkerPos "Zspawn_1") select 1,0]; 
Zspawner_2 setPosASL [(getMarkerPos "Zspawn_2") select 0, (getMarkerPos "Zspawn_2") select 1,0];
}; 
    case 3: {hint "ZDay +3"; 
Zspawner_1 setPosASL [(getMarkerPos "Zspawn_1") select 0, (getMarkerPos "Zspawn_1") select 1,0]; 
Zspawner_2 setPosASL [(getMarkerPos "Zspawn_2") select 0, (getMarkerPos "Zspawn_2") select 1,0]; 
Zspawner_3 setPosASL [(getMarkerPos "Zspawn_3") select 0, (getMarkerPos "Zspawn_3") select 1,0]; 
}; 
    case 4: {hint "ZDay +4"; 
Zspawner_1 setPosASL [(getMarkerPos "Zspawn_1") select 0, (getMarkerPos "Zspawn_1") select 1,0]; 
Zspawner_2 setPosASL [(getMarkerPos "Zspawn_2") select 0, (getMarkerPos "Zspawn_2") select 1,0]; 
Zspawner_3 setPosASL [(getMarkerPos "Zspawn_3") select 0, (getMarkerPos "Zspawn_3") select 1,0]; 
Zspawner_4 setPosASL [(getMarkerPos "Zspawn_4") select 0, (getMarkerPos "Zspawn_4") select 1,0]; 
}; 
    case 5: {hint "ZDay +5"; 
Zspawner_1 setPosASL [(getMarkerPos "Zspawn_1") select 0, (getMarkerPos "Zspawn_1") select 1,0]; 
Zspawner_2 setPosASL [(getMarkerPos "Zspawn_2") select 0, (getMarkerPos "Zspawn_2") select 1,0]; 
Zspawner_3 setPosASL [(getMarkerPos "Zspawn_3") select 0, (getMarkerPos "Zspawn_3") select 1,0]; 
Zspawner_4 setPosASL [(getMarkerPos "Zspawn_4") select 0, (getMarkerPos "Zspawn_4") select 1,0]; 
Zspawner_5 setPosASL [(getMarkerPos "Zspawn_5") select 0, (getMarkerPos "Zspawn_5") select 1,0]; 
}; 
    case 6: {hint "ZDay +6"; 
Zspawner_1 setPosASL [(getMarkerPos "Zspawn_1") select 0, (getMarkerPos "Zspawn_1") select 1,0]; 
Zspawner_2 setPosASL [(getMarkerPos "Zspawn_2") select 0, (getMarkerPos "Zspawn_2") select 1,0]; 
Zspawner_3 setPosASL [(getMarkerPos "Zspawn_3") select 0, (getMarkerPos "Zspawn_3") select 1,0]; 
Zspawner_4 setPosASL [(getMarkerPos "Zspawn_4") select 0, (getMarkerPos "Zspawn_4") select 1,0]; 
Zspawner_5 setPosASL [(getMarkerPos "Zspawn_5") select 0, (getMarkerPos "Zspawn_5") select 1,0]; 
Zspawner_6 setPosASL [(getMarkerPos "Zspawn_6") select 0, (getMarkerPos "Zspawn_6") select 1,0]; 
}; 
};


On Deactivation


hint "Zombie Attack Over";
Zspawner_1 setPosASL [0,0,0];
Zspawner_2 setPosASL [0,0,0];
Zspawner_3 setPosASL [0,0,0];
Zspawner_4 setPosASL [0,0,0];
Zspawner_5 setPosASL [0,0,0];
Zspawner_6 setPosASL [0,0,0];