2015-05-01 18:31:37 +00:00
|
|
|
/*
|
|
|
|
* Author: jaynus
|
|
|
|
* Checks if the turret occupied by the given unit can lock a laser designator and select laser code.
|
|
|
|
*
|
2016-06-18 09:50:41 +00:00
|
|
|
* Arguments:
|
2015-05-01 18:31:37 +00:00
|
|
|
* 0: Unit <OBJECT>
|
|
|
|
*
|
2016-06-18 09:50:41 +00:00
|
|
|
* Return Value:
|
2015-05-01 18:31:37 +00:00
|
|
|
* Has designator? <BOOL>
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
EXPLODE_1_PVT(_this,_unit);
|
|
|
|
|
|
|
|
// Get the player turret path
|
|
|
|
private ["_turret","_config","_turretConfig"];
|
|
|
|
_turret = [_unit] call EFUNC(common,getTurretIndex);
|
|
|
|
_config = configFile >> "CfgVehicles" >> typeOf vehicle _unit;
|
|
|
|
_turretConfig = [_config, _turret] call EFUNC(common,getTurretConfigPath);
|
|
|
|
|
|
|
|
getNumber (_turretConfig >> QGVAR(CanLockLaser)) > 0
|