2015-04-12 18:29:33 +00:00
|
|
|
/*
|
|
|
|
* Author: jaynus
|
|
|
|
* Turns off passed laser self designation.
|
|
|
|
*
|
|
|
|
* Argument:
|
|
|
|
* 0: Shooter, player shooting the laser
|
|
|
|
* 1: LaserUUID, the UUID of the laser returned by EFUNC(laser,laserOn)
|
|
|
|
* 2: Local laser target, unused.
|
|
|
|
*
|
|
|
|
* Return value:
|
|
|
|
* true
|
|
|
|
*/
|
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 {
|
2015-04-16 01:30:05 +00:00
|
|
|
EXPLODE_3_PVT(_this,_shooter,_laserUuid,_localLaserTarget);
|
2015-01-20 04:13:12 +00:00
|
|
|
|
2015-04-12 18:01:22 +00:00
|
|
|
[_laserUuid] call EFUNC(laser,laserOff);
|
2015-04-12 18:14:12 +00:00
|
|
|
// @TODO: Nou gets to field all tickets about missing lasers.
|
|
|
|
//deleteVehicle _localLaserTarget;
|
2015-01-20 04:13:12 +00:00
|
|
|
};
|
|
|
|
|
2015-04-07 19:11:28 +00:00
|
|
|
GVAR(active) = false;
|
2015-01-20 04:13:12 +00:00
|
|
|
|
2015-04-14 18:42:26 +00:00
|
|
|
if(!isNil QGVAR(selfDesignateHandle)) then {
|
|
|
|
[GVAR(selfDesignateHandle)] call CBA_fnc_removePerFrameHandler;
|
|
|
|
GVAR(selfDesignateHandle) = nil;
|
|
|
|
};
|
|
|
|
|
2015-01-20 04:13:12 +00:00
|
|
|
true
|