2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2016-01-05 22:40:27 +00:00
|
|
|
/*
|
|
|
|
* Author: VKing
|
|
|
|
* Causes the unit to detonate all passed explosives.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Unit <OBJECT>
|
|
|
|
* 1: Range (-1 to ignore) <NUMBER>
|
|
|
|
* 2: Explosives to detonate <ARRAY>
|
|
|
|
* 0: Explosive <OBJECT>
|
|
|
|
* 1: Fuse time <NUMBER>
|
2017-05-10 16:28:44 +00:00
|
|
|
* 3: Trigger Item Classname <STRING>
|
2016-01-05 22:40:27 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
2017-05-10 16:28:44 +00:00
|
|
|
* [player, -1, [[c4,0.5]], "ACE_Clacker"] call ACE_Explosives_fnc_detonateExplosiveAll;
|
2016-01-05 22:40:27 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2017-05-10 16:28:44 +00:00
|
|
|
params ["_unit", "_range", "_explosivesList", "_triggerClassname"];
|
|
|
|
TRACE_4("Params",_unit,_range,_explosivesList,_triggerClassname);
|
2016-01-05 22:40:27 +00:00
|
|
|
|
|
|
|
{
|
2017-05-10 16:28:44 +00:00
|
|
|
[_unit,_range,_x,_triggerClassname] call FUNC(detonateExplosive);
|
2016-01-05 22:40:27 +00:00
|
|
|
} forEach _explosivesList;
|