ACE3/addons/chemlights/functions/fnc_removeIR.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

28 lines
523 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: voiper
* Kill chemlight and any dummy objects attached to it.
*
* Arguments:
* 0: Chemlight object <OBJECT>
* 1: Light marker vehicle <OBJECT>
*
* Return Value:
* None
*
* Example:
* [_chemlight, _lightMarker] call ace_chemlights_fnc_removeIR;
*
* Public: No
*/
params ["_chemlight", "_lightMarker"];
if (!isNull _lightMarker) then {
detach _lightMarker;
deleteVehicle _lightMarker;
};
if (!isNull _chemlight) then {
deleteVehicle _chemlight;
};