mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fedad7f8f7
* Add ace_chemlights. Make chemlight intensity and dropoff more realistic. Add orange, white, IR chemlights. Add chemlight shields. Make chemlight impact sounds more realistic. * Moved impact sound changes to a different branch. * Used QPATHTOF. Fixed scopes. Used initServer. Reduced lifetime duration. Checked privates. * Stringtable: 5 minute. * Blue lifetime. Removed ref to deprecated function * Use proper magazine macro. Add new chemlights to Misc box.
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;
|
|
};
|