mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
prevent multiple detonators of same type to be displayed #835
As per @CorruptedHeart suggestion. > Just needs a > if (getNumber (_config >> "ACE_Detonator") == 1 && {!(_x in _result)}) then {
This commit is contained in:
parent
95536f0a94
commit
7ca35bf823
@ -21,7 +21,7 @@ _result = [];
|
||||
|
||||
{
|
||||
_config = ConfigFile >> "CfgWeapons" >> _x;
|
||||
if (getNumber (_config >> "ACE_Detonator") == 1) then {
|
||||
if (getNumber (_config >> "ACE_Detonator") == 1 && {!(_x in _result)}) then {
|
||||
_result pushBack _x;
|
||||
};
|
||||
} forEach _items;
|
||||
|
Loading…
Reference in New Issue
Block a user