2016-05-30 16:37:03 +00:00
|
|
|
//#define DEBUG_MODE_FULL
|
|
|
|
#include "script_component.hpp"
|
|
|
|
TRACE_1("enter", _this);
|
|
|
|
|
2016-07-06 01:58:32 +00:00
|
|
|
private _currentShooter = if (ACE_player call CBA_fnc_canUseWeapon) then {ACE_player} else {vehicle ACE_player};
|
|
|
|
private _currentFireMode = _currentShooter getVariable["ace_missileguidance_attackProfile", "JAV_TOP"];
|
2016-05-30 16:37:03 +00:00
|
|
|
|
|
|
|
if(_currentFireMode == "JAV_DIR") then {
|
|
|
|
_currentFireMode = "JAV_TOP";
|
|
|
|
} else {
|
|
|
|
_currentFireMode = "JAV_DIR";
|
|
|
|
};
|
2016-07-06 01:58:32 +00:00
|
|
|
_currentShooter setVariable["ace_missileguidance_attackProfile", _currentFireMode, false];
|