difficultyEnabled: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
Lou Montana (talk | contribs) |
||
Line 118: | Line 118: | ||
};</code> | };</code> | ||
|seealso= [[difficultyOption]] | |seealso= [[difficultyOption]] [[difficulty]], [[difficultyEnabledRTD]], [[Arma 3: Difficulty Settings]] | ||
}} | }} |
Revision as of 14:56, 20 January 2022
Description
- Description:
- 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).
- Multiplayer:
- This command checks the difficulty flags of the computer (client/server) where it is executed.
- Groups:
- Difficulty
Syntax
- Syntax:
- difficultyEnabled flagName
- Parameters:
- flagName: String - Difficulty flag name. Following values are available:
- 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
- 3rdPersonView
- armor
- autoSpot
- autoGuideAT
- autoAim
- allowSeagull
- clockIndicator
- deathMessages
- enemyTag
- friendlyTag
- hud
- hudPerm
- hudWp
- hudWpPerm
- map
- netStats
- suppressPlayer
- tracers
- realisticFatigue
- ultraAI
- unlimitedSaves
- weaponCursor
- 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
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.05
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Difficulty