mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
28 lines
609 B
Plaintext
28 lines
609 B
Plaintext
#include "script_component.hpp"
|
|
|
|
if( (count _this) > 2) then {
|
|
EXPLODE_3_PVT(_this,_vehicle,_shooter,_laserTarget);
|
|
// We got the optional vehicle list, clear the parameters
|
|
_vehicle setVariable[QGVAR(currentTarget), [], true];
|
|
};
|
|
|
|
if(isNil QGVAR(laser)) exitWith {
|
|
false
|
|
};
|
|
if(!local GVAR(laser)) then {
|
|
false
|
|
};
|
|
|
|
_handle = GVAR(laser) getVariable ["ACE_PFH_HANDLE", nil];
|
|
if(!isNil "_handle") then {
|
|
[_handle] call cba_fnc_removePerFrameHandler;
|
|
};
|
|
|
|
REM(ACE_LASERS, GVAR(laser));
|
|
deleteVehicle GVAR(laser);
|
|
GVAR(laser) = nil;
|
|
GVAR(active) = false;
|
|
|
|
|
|
|
|
true |