difficultyEnabled – Talk
Jump to navigation
Jump to search
No edit summary |
Lou Montana (talk | contribs) m (Text replacement - "<code>" to "<code style="display: block">") |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
To check for veteran: difficultyEnabled "Map" ?? --[[User:Doolittle|Doolittle]] 07:27, 9 September 2007 (CEST) | To check for veteran: difficultyEnabled "Map" ?? --[[User:Doolittle|Doolittle]] 07:27, 9 September 2007 (CEST) | ||
:What about if (!cadetMode) then { player SideChat "Veteran mode!"; }; --[[User:TeRp|TeRp]] 17:10, 9 September 2007 (CEST) | |||
i have added the possile values.--[[User:Crowe|Crowe]] 17:26, 15 March 2008 (CET) | |||
== Code to get flags in A3 == | |||
<code style="display: block">_difficulties = []; | |||
{ | |||
_cfg = configFile >> "CfgDifficulties" >> _x >> "Flags"; | |||
for "_i" from 0 to count _cfg - 1 do { | |||
_difficulties pushBack configName (_cfg select _i); | |||
}; | |||
} forEach ["Recruit", "Regular", "Veteran", "Mercenary"]; | |||
_difficulties = _difficulties arrayIntersect _difficulties; | |||
_difficulties sort true; | |||
{ | |||
"debug_console" callExtension format ["* %1", _x]; | |||
} forEach _difficulties;</code> |
Latest revision as of 11:52, 11 January 2023
To check for veteran: difficultyEnabled "Map" ?? --Doolittle 07:27, 9 September 2007 (CEST)
- What about if (!cadetMode) then { player SideChat "Veteran mode!"; }; --TeRp 17:10, 9 September 2007 (CEST)
i have added the possile values.--Crowe 17:26, 15 March 2008 (CET)
Code to get flags in A3
_difficulties = [];
{
_cfg = configFile >> "CfgDifficulties" >> _x >> "Flags";
for "_i" from 0 to count _cfg - 1 do {
_difficulties pushBack configName (_cfg select _i);
};
} forEach ["Recruit", "Regular", "Veteran", "Mercenary"];
_difficulties = _difficulties arrayIntersect _difficulties;
_difficulties sort true;
{
"debug_console" callExtension format ["* %1", _x];
} forEach _difficulties;