_unit = _this select 0
_sea = "EmptyDetector" createVehicle [0,0,0]
_sea setPos [getPos vehicle _unit select 0, getPos vehicle _unit select 1,0]
_asl_altitude = _sea distance vehicle _unit
?_als_altitude < 2000: goto "skipblackout"
<... BLACK OUT CODE HERE
_logic = "logic" createVehicle [0,0,0]
_logic setPos [getPos vehicle _unit select 0, getPos vehicle _unit select 1,0]
_height_of_ground_here = _logic distance _sea
vehicle _unit setPos [getPos vehicle _unit select 0, getPos vehicle _unit select 1, 500 - _height_of_ground_here]
deleteVehicle _logic
<...AWAKE CODE HERE
#skipblackout
deleteVehicle _sea
exit