class ACTION_BlowUpPipebombs extends ScriptedAction;

var (Action) bool bInstantExplode; // instantly explode or wait for count down?

function bool InitActionFor(ScriptedController C)
{
	local PipeBombProjectile P;
		
	foreach C.DynamicActors(Class'PipeBombProjectile',P)
	{
		if( !P.bHidden )
		{
			P.bEnemyDetected = true; // blow me up
			if ( bInstantExplode ) {
				P.CountDown = 0;
			}
		}
	}

	return false;
}

defaultproperties
{
     ActionString="Blow up pipebombs"
}
