2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2016-08-27 08:19:39 +00:00
|
|
|
/*
|
|
|
|
* Author: voiper
|
|
|
|
* Kill chemlight and any dummy objects attached to it.
|
|
|
|
*
|
|
|
|
* Arguments:
|
2016-08-31 20:12:40 +00:00
|
|
|
* 0: Chemlight object <OBJECT>
|
|
|
|
* 1: Light marker vehicle <OBJECT>
|
2016-08-27 08:19:39 +00:00
|
|
|
*
|
|
|
|
* 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;
|
|
|
|
};
|