mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
eb53e7a2fe
* tools - handle header sub indexs for arguements * convert remaining * Update coding-guidelines.md
29 lines
696 B
Plaintext
29 lines
696 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* 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>
|
|
* 3: Trigger Item Classname <STRING>
|
|
*
|
|
* 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;
|