From 864d2e9eeed7028ef5194caec7948566950ebbdc Mon Sep 17 00:00:00 2001 From: Zachary Dunn Date: Tue, 20 Jun 2023 16:36:57 -0300 Subject: [PATCH] Explosives - Add "ace_explosives_setup" CBA Event (#9197) --- addons/explosives/functions/fnc_setupExplosive.sqf | 1 + docs/wiki/framework/events-framework.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/addons/explosives/functions/fnc_setupExplosive.sqf b/addons/explosives/functions/fnc_setupExplosive.sqf index 2e0c6ca426..5880bc75fe 100644 --- a/addons/explosives/functions/fnc_setupExplosive.sqf +++ b/addons/explosives/functions/fnc_setupExplosive.sqf @@ -187,6 +187,7 @@ GVAR(TweakedAngle) = 0; _unit setVariable [QGVAR(PlantingExplosive), true]; [{_this setVariable [QGVAR(PlantingExplosive), false]}, _unit, 1.5] call CBA_fnc_waitAndExecute; + [QGVAR(setup), [_expSetupVehicle, _magClassname, _unit]] call CBA_fnc_globalEvent; }; } else { private _screenPos = worldToScreen (_virtualPosASL call EFUNC(common,ASLToPosition)); diff --git a/docs/wiki/framework/events-framework.md b/docs/wiki/framework/events-framework.md index f7f495fb4c..99752735c0 100644 --- a/docs/wiki/framework/events-framework.md +++ b/docs/wiki/framework/events-framework.md @@ -87,6 +87,8 @@ MenuType: 0 = Interaction, 1 = Self Interaction |`ace_allowDefuse` | [_mine, _allow] | Global or Target | Callable | Set allowance of the dynamic defusal action on a mine |`ace_tripflareTriggered` | [_flareObject, [_posX, _posY, _posZ]] | Global | Listen | Tripflare triggered |`ace_explosives_clackerAdded` | [_unit, _explosive, _id] | Local | Listen | Clacker added to explosive +|`ace_explosives_place` | [_explosive, _dir, _pitch, _unit] | Global | Listen | Explosive is armed +|`ace_explosives_setup` | [_explosiveVehicle, _magClassname, _unit] | Global | Listen | Explosive is placed in the world ### 2.9 Logistics Wirecutter (`ace_logistics`)