mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
41 lines
925 B
Plaintext
41 lines
925 B
Plaintext
/*
|
|
* Author: Rosuto, Ruthberg
|
|
* Toggles the DAGR overlay
|
|
*
|
|
* Arguments:
|
|
* Nothing
|
|
*
|
|
* Return Value:
|
|
* Nothing
|
|
*
|
|
* Example:
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
if (cameraView == "GUNNER") exitWith {};
|
|
|
|
GVAR(run) = !GVAR(run);
|
|
|
|
if (GVAR(run)) then {
|
|
switch (toUpper GVAR(displaySelection)) do {
|
|
case "WP" : {
|
|
call FUNC(DAGR_OUTPUT_WP);
|
|
};
|
|
case "VECTOR" : {
|
|
call FUNC(DAGR_OUTPUT_VECTOR);
|
|
};
|
|
case "DATA" : {
|
|
call FUNC(DAGR_OUTPUT_DATA);
|
|
};
|
|
};
|
|
[{
|
|
EXPLODE_1_PVT(_this select 0,_vehicle);
|
|
if (!GVAR(run) || (!alive ACE_player) || (cameraView == "GUNNER") || (vehicle ACE_player != _vehicle)) exitWith {
|
|
135471 cutText ["", "PLAIN"];
|
|
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
|
};
|
|
}, 0.1, [vehicle ACE_player]] call CBA_fnc_addPerFrameHandler;
|
|
};
|