Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
thx @zdo
But there is a bug: now it is a hashmap not an array.
Here is the fix:
// check for weapons on safety
private _safedweapons = _unit getVariable ["ace_safemode_safedweapons", []];
if ((count _safedweapons) > 0) then {
_safedweapons = keys _safedweapons;
};
if ((count _safedweapons) > 0) then {
// remove unused weapons - commented out
// private _newArr = _safedweapons arrayIntersect (weapons _unit);
// _unit setVariable ["ace_safemode_safedweapons", _newArr];
};