2015-04-07 15:58:54 +00:00
|
|
|
/*
|
|
|
|
* Author: Ruthberg
|
|
|
|
* Opens the Kestrel 4500 dialog
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-04-07 15:43:54 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-04-10 13:26:56 +00:00
|
|
|
//if (dialog) exitWith { false };
|
2015-04-07 15:43:54 +00:00
|
|
|
if (underwater ACE_player) exitWith { false };
|
|
|
|
if (!("ACE_Kestrel4500" in (uniformItems ACE_player)) && !("ACE_Kestrel4500" in (vestItems ACE_player))) exitWith { false };
|
|
|
|
|
2015-04-08 09:25:15 +00:00
|
|
|
GVAR(Overlay) = false;
|
2015-04-07 15:43:54 +00:00
|
|
|
3 cutText ["", "PLAIN"];
|
|
|
|
|
|
|
|
GVAR(Kestrel4500) = true;
|
|
|
|
createDialog 'Kestrel4500_Display';
|
|
|
|
|
|
|
|
[{
|
|
|
|
if (!dialog || !GVAR(Kestrel4500)) exitWith {
|
2015-04-07 17:57:42 +00:00
|
|
|
GVAR(Kestrel4500) = false;
|
2015-04-07 15:43:54 +00:00
|
|
|
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
|
|
|
};
|
|
|
|
|
|
|
|
[] call FUNC(updateDisplay);
|
|
|
|
}, 1, _this select 0] call CBA_fnc_addPerFrameHandler;
|
|
|
|
|
|
|
|
true
|