mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
28 lines
586 B
Plaintext
28 lines
586 B
Plaintext
/*
|
|
* 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>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [player, -1, "Command"] call ACE_Explosives_fnc_detonateExplosive;
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_unit", "_range", "_explosivesList"];
|
|
TRACE_3("Params",_unit,_range,_explosivesList);
|
|
|
|
{
|
|
[_unit,_range,_x] call FUNC(detonateExplosive);
|
|
} forEach _explosivesList;
|