difficultyEnabled: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) m (format) |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *D([a-z])" to "$1 - d$2") |
||
(60 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| | |game1= arma1 | ||
|version1= 1.05 | |||
|1. | |game2= arma2 | ||
|version2= 1.00 | |||
| | |game3= arma2oa | ||
|version3= 1.50 | |||
|game4= tkoh | |||
|version4= 1.00 | |||
|game5= arma3 | |||
|version5= 0.50 | |||
|gr1= Difficulty | |||
|descr= Checks specific difficulty settings of the current user. Difficulty flag names can be found in the [[server.armaprofile|ArmA profile]] file under class Difficulties/xxx/Flags (xxx being regular or veteran). | |||
|mp= This command checks the difficulty flags of the computer (client/server) where it is executed. | |||
{{Feature|arma3| | |||
This command is '''deprecated since {{arma3}} v1.58'''. Since this version it always returns false. Use [[difficultyOption]] instead. | |||
See [[Arma 3: Difficulty Settings#Difficulty_Overhaul|Arma 3 Difficulty Overhaul]] for further details. | |||
* Stress damage is a separate difficulty setting. There are two dedicated commands for it: | |||
** [[enableStressDamage]] | |||
** [[isStressDamageEnabled]] | |||
* Auto trim is also a separate difficulty setting. There are also two dedicated commands for it: | |||
** [[enableAutoTrimRTD]] | |||
** [[isAutoTrimOnRTD]] | |||
}} | |||
|s1= [[difficultyEnabled]] flagName | |||
|p1= flagName: [[String]] - difficulty flag name. Following values are available:<br> | |||
<spoiler text="Arma 3 Flags"> | |||
{{Columns|5| | |||
* 3rdPersonView | * 3rdPersonView | ||
* armor | * armor | ||
Line 36: | Line 63: | ||
* unlimitedSaves | * unlimitedSaves | ||
* vonID | * vonID | ||
* weaponCursor | * weaponCursor | ||
* windEnabled | * windEnabled | ||
}} | }} | ||
</spoiler> | |||
<spoiler text="Arma 2 Flags"> | |||
< | {{Columns|5| | ||
* 3rdPersonView | * 3rdPersonView | ||
* armor | * armor | ||
Line 85: | Line 91: | ||
* unlimitedSaves | * unlimitedSaves | ||
* weaponCursor | * weaponCursor | ||
}} | |||
</spoiler> | |||
|r1= [[Boolean]] | |||
|x1= <sqf>hint str (difficultyEnabled "armor");</sqf> | |||
< | |x2= List current difficulty settings: | ||
</ | <sqf> | ||
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; | |||
}; | |||
</sqf> | |||
|seealso= [[difficultyOption]] [[difficulty]] [[difficultyEnabledRTD]] [[Arma 3: Difficulty Settings]] | |||
}} | |||
[[ | |||
[[ | |||
[[ | |||
[[ | |||
Latest revision as of 14:01, 8 November 2023
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:
- 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