2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2021-11-07 16:52:47 +00:00
|
|
|
/*
|
|
|
|
* Author: BaerMitUmlaut
|
|
|
|
* Inflames a unit.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The module logic <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [LOGIC] call ace_zeus_fnc_moduleBurn
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_logic"];
|
|
|
|
|
2024-06-22 18:07:36 +00:00
|
|
|
if (!local _logic) exitWith {};
|
2021-11-07 16:52:47 +00:00
|
|
|
|
|
|
|
private _unit = attachedTo _logic;
|
|
|
|
deleteVehicle _logic;
|
|
|
|
|
|
|
|
switch (false) do {
|
2024-06-22 18:07:36 +00:00
|
|
|
case (!isNull _unit): {
|
2021-11-07 16:52:47 +00:00
|
|
|
[LSTRING(NothingSelected)] call FUNC(showMessage);
|
|
|
|
};
|
2024-06-22 18:07:36 +00:00
|
|
|
case (_unit isKindOf "CAManBase" && {getNumber (configOf _unit >> "isPlayableLogic") == 0}): {
|
2021-11-07 16:52:47 +00:00
|
|
|
[LSTRING(OnlyInfantry)] call FUNC(showMessage);
|
|
|
|
};
|
|
|
|
case (["ace_fire"] call EFUNC(common,isModLoaded)): {
|
|
|
|
[LSTRING(RequiresAddon)] call FUNC(showMessage);
|
|
|
|
};
|
|
|
|
default {
|
2024-06-22 18:07:36 +00:00
|
|
|
[QEGVAR(fire,burn), [_unit, 5], _unit] call CBA_fnc_targetEvent;
|
2021-11-07 16:52:47 +00:00
|
|
|
};
|
|
|
|
};
|