ACE3/addons/reloadlaunchers/XEH_postInit.sqf

27 lines
946 B
Plaintext
Raw Normal View History

2015-03-18 19:17:53 +00:00
// by commy2
#include "script_component.hpp"
[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;
[QGVAR(reloadLauncher), LINKFUNC(reloadLauncher)] call CBA_fnc_addEventHandler;