Ambush With Bombs

Script

ambushWithBombs.sqf
[] spawn {  
_bombPos = getPos bomb_0;  
bomb_0 setDamage 1;  
sleep 3;  
{   
    _x setPos _bombPos; 
 _x enableSimulationGlobal true; 
} forEach units attackSquad_0;  
_wayPoint = attackSquad_0 addWaypoint [attackGuy, -1];  
_wayPoint setWaypointType "SAD";  
_bombPos = getPos bomb_1;  
bomb_1 setDamage 1;  
sleep 3;  
{   
    _x setPos _bombPos; 
 _x enableSimulationGlobal true; 
} forEach units attackSquad_1;  
_wayPoint = attackSquad_1 addWaypoint [attackGuy, -1];  
_wayPoint setWaypointType "SAD";  
_bombPos = getPos bomb_2;  
bomb_2 setDamage 1;  
sleep 3;  
{   
    _x setPos _bombPos; 
 _x enableSimulationGlobal true; 
} forEach units attackSquad_2;  
_wayPoint = attackSquad_2 addWaypoint [attackGuy, -1];  
_wayPoint setWaypointType "SAD";  
};