#include "..\script_component.hpp" /* * Author: VKing * Causes the unit to detonate all passed explosives. * * Arguments: * 0: Unit * 1: Range (-1 to ignore) * 2: Explosives to detonate * - 0: Explosive * - 1: Fuse time * 3: Trigger Item Classname * * Return Value: * None * * Example: * [player, -1, [[c4,0.5]], "ACE_Clacker"] call ACE_Explosives_fnc_detonateExplosiveAll; * * Public: No */ params ["_unit", "_range", "_explosivesList", "_triggerClassname"]; TRACE_4("Params",_unit,_range,_explosivesList,_triggerClassname); { [_unit,_range,_x,_triggerClassname] call FUNC(detonateExplosive); } forEach _explosivesList;