
var DetonateDepth

; Pick Random Depth Setting
IF INIT THEN {
	DetonateDepth = ( -100 - RND 200 )
	IF DetonateDepth < TerrainAlt THEN {
		DetonateDepth = ( TerrainAlt + 50 )
	} ENDIF
} elseIF OwnAlt < DetonateDepth THEN { DETONATE
} ELSE {
	IF ( OwnAlt < 0 ) THEN {
 		SetAlt ( DetonateDepth - 30 )
		SetPriority 255	SetSpd MaxSpd
		SetPriority 255	SetPitch -87
	} ENDIF
} ENDIF



