2015-03-18 19:17:53 +00:00
|
|
|
// by commy2
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2023-08-28 18:14:45 +00:00
|
|
|
[QGVAR(reloadStarted), {
|
|
|
|
params ["_unit", "_target"];
|
|
|
|
|
|
|
|
// Don't show notification if target is local AI
|
|
|
|
if (GVAR(displayStatusText) && {!local _unit} && {_target call EFUNC(common,isPlayer)}) then {
|
|
|
|
private _message = format [LLSTRING(LoadingStarted), _unit call EFUNC(common,getName)];
|
|
|
|
|
|
|
|
[_message] call EFUNC(common,displayTextStructured);
|
|
|
|
};
|
|
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
|
|
|
|
[QGVAR(reloadAborted), {
|
|
|
|
params ["_unit", "_target"];
|
|
|
|
|
|
|
|
// Don't show notification if target is local AI
|
|
|
|
if (GVAR(displayStatusText) && {!local _unit} && {_target call EFUNC(common,isPlayer)}) then {
|
|
|
|
private _message = format [LLSTRING(LoadingAborted), _unit call EFUNC(common,getName)];
|
|
|
|
|
|
|
|
[_message] call EFUNC(common,displayTextStructured);
|
|
|
|
};
|
|
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
|
2023-08-28 17:27:01 +00:00
|
|
|
[QGVAR(reloadLauncher), LINKFUNC(reloadLauncher)] call CBA_fnc_addEventHandler;
|