mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
#2208 - Use ACE Message Display instead of sideChat
This commit is contained in:
parent
61bc40a650
commit
4c14dc7684
@ -51,6 +51,9 @@ if (isNil QGVAR(CellphoneIEDs)) then {
|
|||||||
_count = GVAR(CellphoneIEDs) pushBack [_explosive,_code,GetNumber(ConfigFile >> "CfgMagazines" >> _magazineClass >> "ACE_Triggers" >> "Cellphone" >> "FuseTime")];
|
_count = GVAR(CellphoneIEDs) pushBack [_explosive,_code,GetNumber(ConfigFile >> "CfgMagazines" >> _magazineClass >> "ACE_Triggers" >> "Cellphone" >> "FuseTime")];
|
||||||
_count = _count + 1;
|
_count = _count + 1;
|
||||||
publicVariable QGVAR(CellphoneIEDs);
|
publicVariable QGVAR(CellphoneIEDs);
|
||||||
_unit sideChat format ["IED %1 code: %2", _count,_code];
|
|
||||||
|
//display IDE number message:
|
||||||
|
[format ["IED %1 code: %2", _count,_code]] call EFUNC(common,displayTextStructured);
|
||||||
|
|
||||||
if !(_hasRequired) exitWith {};
|
if !(_hasRequired) exitWith {};
|
||||||
[format ["IED %1", _count],_code] call FUNC(addToSpeedDial);
|
[format ["IED %1", _count],_code] call FUNC(addToSpeedDial);
|
||||||
|
@ -45,4 +45,6 @@ _clacker pushBack [_explosive, getNumber(_config >> "FuseTime"), format [localiz
|
|||||||
GVAR(PlacedCount)], _magazineClass, configName ((_this select 3) select (count (_this select 3) - 1))];
|
GVAR(PlacedCount)], _magazineClass, configName ((_this select 3) select (count (_this select 3) - 1))];
|
||||||
|
|
||||||
_unit setVariable [QGVAR(Clackers), _clacker, true];
|
_unit setVariable [QGVAR(Clackers), _clacker, true];
|
||||||
_unit sideChat format [localize LSTRING(DetonateCode), GVAR(PlacedCount)];
|
|
||||||
|
//display clacker code message:
|
||||||
|
[format [localize LSTRING(DetonateCode), GVAR(PlacedCount)]] call EFUNC(common,displayTextStructured);
|
||||||
|
Loading…
Reference in New Issue
Block a user