class SendEquipWeaponCommand extends AIbehaviortaskScript
{
	editable var m_secondary : Bool;

	protected override function Activate( context : ScriptExecutionContext )
	{
		var cmd : AICommand;
		if( m_secondary )
		{
			cmd = new AISwitchToSecondaryWeaponCommand;
		}
		else
		{
			cmd = new AISwitchToPrimaryWeaponCommand;
		}
		GetPuppet( context ).GetAIControllerComponent().SendCommand( cmd );
	}

}

