mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
29 lines
521 B
Plaintext
29 lines
521 B
Plaintext
|
/*
|
||
|
* Author: voiper
|
||
|
* Kill chemlight and any dummy objects attached to it.
|
||
|
*
|
||
|
* Arguments:
|
||
|
* 1: Chemlight object <OBJECT>
|
||
|
* 2: Light marker vehicle <OBJECT>
|
||
|
*
|
||
|
* Return Value:
|
||
|
* None
|
||
|
*
|
||
|
* Example:
|
||
|
* [_chemlight, _lightMarker] call ace_chemlights_fnc_removeIR;
|
||
|
*
|
||
|
* Public: No
|
||
|
*/
|
||
|
|
||
|
#include "script_component.hpp"
|
||
|
|
||
|
params ["_chemlight", "_lightMarker"];
|
||
|
|
||
|
if (!isNull _lightMarker) then {
|
||
|
detach _lightMarker;
|
||
|
deleteVehicle _lightMarker;
|
||
|
};
|
||
|
if (!isNull _chemlight) then {
|
||
|
deleteVehicle _chemlight;
|
||
|
};
|