2016-05-30 16:37:03 +00:00
|
|
|
/*
|
|
|
|
* Author: jaynus
|
|
|
|
* Turns off passed laser self designation.
|
|
|
|
*
|
2016-06-18 09:50:41 +00:00
|
|
|
* Arguments:
|
2016-05-30 16:37:03 +00:00
|
|
|
* 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 <BOOL>
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
if( (count _this) > 2) then {
|
|
|
|
params ["", "_laserUuid"];
|
|
|
|
[_laserUuid] call EFUNC(laser,laserOff);
|
|
|
|
// @TODO: Nou gets to field all tickets about missing lasers.
|
|
|
|
//deleteVehicle _localLaserTarget;
|
|
|
|
};
|
|
|
|
|
|
|
|
GVAR(active) = false;
|
|
|
|
|
|
|
|
if(!isNil QGVAR(selfDesignateHandle)) then {
|
|
|
|
[GVAR(selfDesignateHandle)] call CBA_fnc_removePerFrameHandler;
|
|
|
|
GVAR(selfDesignateHandle) = nil;
|
|
|
|
};
|
|
|
|
|
|
|
|
true
|