2015-01-20 04:13:12 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-04-07 19:35:34 +00:00
|
|
|
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];
|
2015-04-07 16:05:19 +00:00
|
|
|
};
|
|
|
|
|
2015-01-20 04:13:12 +00:00
|
|
|
if(isNil QGVAR(laser)) exitWith {
|
2015-04-02 16:35:36 +00:00
|
|
|
false
|
2015-01-20 04:13:12 +00:00
|
|
|
};
|
|
|
|
if(!local GVAR(laser)) then {
|
2015-04-02 16:35:36 +00:00
|
|
|
false
|
2015-01-20 04:13:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
_handle = GVAR(laser) getVariable ["ACE_PFH_HANDLE", nil];
|
|
|
|
if(!isNil "_handle") then {
|
2015-04-02 16:35:36 +00:00
|
|
|
[_handle] call cba_fnc_removePerFrameHandler;
|
2015-01-20 04:13:12 +00:00
|
|
|
};
|
|
|
|
|
2015-04-07 19:35:34 +00:00
|
|
|
REM(ACE_LASERS, GVAR(laser));
|
2015-01-20 04:13:12 +00:00
|
|
|
deleteVehicle GVAR(laser);
|
|
|
|
GVAR(laser) = nil;
|
2015-04-07 19:11:28 +00:00
|
|
|
GVAR(active) = false;
|
2015-01-20 04:13:12 +00:00
|
|
|
|
2015-04-07 16:05:19 +00:00
|
|
|
|
|
|
|
|
2015-01-20 04:13:12 +00:00
|
|
|
true
|