difficultyEnabled: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\|= " to " ") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma1 | | arma1 | ||
|1.05 | |1.05 | ||
|gr1= Difficulty | |gr1= Difficulty | ||
| {{Warning | This command is '''deprecated since Arma 3 1.58'''.}}<br> Since this version it always returns false. Use [[difficultyOption]] instead. See [[Arma_3_Difficulty_Overhaul|Arma 3 Difficulty Overhaul]] for further details. | | {{Warning | This command is '''deprecated since Arma 3 1.58'''.}}<br> Since this version it always returns false. Use [[difficultyOption]] instead. See [[Arma_3_Difficulty_Overhaul|Arma 3 Difficulty Overhaul]] for further details. | ||
Line 15: | Line 15: | ||
<br>'''Note:''' auto trim is also for some reason a separate difficulty so <tt>[[difficultyEnabled]] "autoTrimEnabled"</tt> might not return correct set value. There are also 2 dedicated commands for it: | <br>'''Note:''' auto trim is also for some reason a separate difficulty so <tt>[[difficultyEnabled]] "autoTrimEnabled"</tt> might not return correct set value. There are also 2 dedicated commands for it: | ||
* [[enableAutoTrimRTD]] | * [[enableAutoTrimRTD]] | ||
* [[isAutoTrimOnRTD]] | * [[isAutoTrimOnRTD]] | ||
| '''difficultyEnabled''' flagName | | '''difficultyEnabled''' flagName | ||
|p1= flagName: [[String]] - difficulty flag name | |p1= flagName: [[String]] - difficulty flag name | ||
| [[Boolean]] | | [[Boolean]] | ||
|x1= <code>[[hint]] [[str]] ([[difficultyEnabled]] "armor");</code> | |x1= <code>[[hint]] [[str]] ([[difficultyEnabled]] "armor");</code> | ||
|x2= List current difficulty settings: | |x2= List current difficulty settings: | ||
Line 49: | Line 49: | ||
};</code> | };</code> | ||
| [[difficultyOption]], [[difficulty]], [[difficultyEnabledRTD]], [[Arma 3 Difficulty Menu]] | | [[difficultyOption]], [[difficulty]], [[difficultyEnabledRTD]], [[Arma 3 Difficulty Menu]] | ||
}} | }} |
Revision as of 00:30, 18 January 2021
Description
- Description:
Since this version it always returns false. Use difficultyOption instead. See Arma 3 Difficulty Overhaul for further details.
Former functionality: Checks specific difficulty settings of the current user. Difficulty flag names can be found in the ArmA profile file under class Difficulties/xxx/Flags (xxx being regular or veteran).
Note: stress damage for some reason is a separate difficulty so difficultyEnabled "stressDamageEnabled" might not return correct set value. There are however 2 dedicated commands for it:
Note: auto trim is also for some reason a separate difficulty so difficultyEnabled "autoTrimEnabled" might not return correct set value. There are also 2 dedicated commands for it:- Groups:
- Difficulty
Syntax
- Syntax:
- difficultyEnabled flagName
- Parameters:
- flagName: String - difficulty flag name
- Return Value:
- Boolean
Examples
- Example 1:
hint str (difficultyEnabled "armor");
- Example 2:
- List current difficulty settings:
call { private ["_diff", "_cfg", "_flags", "_res"]; _diff = []; _cfg = configFile >> "CfgDifficulties"; { _flags = _cfg >> configName _x >> "Flags"; for "_i" from 0 to count _flags - 1 do { _diff pushBack configName (_flags select _i); }; } forEach ("true" configClasses _cfg); _diff = _diff arrayIntersect _diff; _diff sort true; _res = text ""; { _res = composeText [_res, parseText format [ "<t align='left'>%1 - %2</t>", _x, [0, 1] select difficultyEnabled _x ], lineBreak]; } forEach _diff; hint _res; };
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
- Posted on June 29, 2015 - 23:20 (UTC)
- Killzone Kid
-
Arma 3 Flags:
- 3rdPersonView
- armor
- autoAim
- autoGuideAT
- autoSpot
- autoTrimEnabled
- cameraShake
- clockIndicator
- deathMessages
- enemyTag
- extendetInfoType
- friendlyTag
- hud
- hudGroupInfo
- hudPerm
- hudWp
- hudWpPerm
- map
- mineTag
- netStats
- roughLanding
- stanceIndicator
- stressDamageEnabled
- unlimitedSaves
- vonID
- weaponCursor
- windEnabled
- Crowe
- Possible Values for Arma 2:
- 3rdPersonView
- armor
- autoSpot
- autoGuideAT
- autoAim
- allowSeagull
- clockIndicator
- deathMessages
- enemyTag
- friendlyTag
- hud
- hudPerm
- hudWp
- hudWpPerm
- map
- netStats
- suppressPlayer
- tracers
- realisticFatigue
- ultraAI
- unlimitedSaves
- weaponCursor