mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
f45dff8a09
Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com> Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
39 lines
843 B
Plaintext
39 lines
843 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* 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"];
|
|
|
|
if (!local _logic) exitWith {};
|
|
|
|
private _unit = attachedTo _logic;
|
|
deleteVehicle _logic;
|
|
|
|
switch (false) do {
|
|
case (!isNull _unit): {
|
|
[LSTRING(NothingSelected)] call FUNC(showMessage);
|
|
};
|
|
case (_unit isKindOf "CAManBase" && {getNumber (configOf _unit >> "isPlayableLogic") == 0}): {
|
|
[LSTRING(OnlyInfantry)] call FUNC(showMessage);
|
|
};
|
|
case (["ace_fire"] call EFUNC(common,isModLoaded)): {
|
|
[LSTRING(RequiresAddon)] call FUNC(showMessage);
|
|
};
|
|
default {
|
|
[QEGVAR(fire,burn), [_unit, 5], _unit] call CBA_fnc_targetEvent;
|
|
};
|
|
};
|