2015-04-04 23:55:53 +00:00
|
|
|
#define DEBUG_MODE_FULL
|
|
|
|
#include "script_component.hpp"
|
|
|
|
TRACE_1("enter", _this);
|
|
|
|
|
|
|
|
private["_player", "_currentFireMode"];
|
|
|
|
|
2015-04-08 15:01:39 +00:00
|
|
|
_currentFireMode = ACE_player getVariable["ace_missileguidance_attackProfile", ACE_JAV_FIREMODE_TOP];
|
2015-04-04 23:55:53 +00:00
|
|
|
if(_currentFireMode == ACE_JAV_FIREMODE_DIR) then {
|
|
|
|
_currentFireMode = ACE_JAV_FIREMODE_TOP;
|
|
|
|
|
|
|
|
__JavelinIGUITop ctrlSetTextColor __ColorGreen;
|
|
|
|
__JavelinIGUIDir ctrlSetTextColor __ColorGray;
|
|
|
|
} else {
|
|
|
|
_currentFireMode = ACE_JAV_FIREMODE_DIR;
|
|
|
|
|
|
|
|
__JavelinIGUITop ctrlSetTextColor __ColorGray;
|
|
|
|
__JavelinIGUIDir ctrlSetTextColor __ColorGreen;
|
|
|
|
};
|
2015-04-08 15:01:39 +00:00
|
|
|
ACE_player setVariable["ace_missileguidance_attackProfile", _currentFireMode, false];
|