difficultyOption: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " 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 | ||
| arma3 | | arma3 | ||
|1.58 | |1.58 | ||
|gr1= Difficulty | |gr1= Difficulty | ||
| Checks specific difficulty settings of the current user. Difficulty flag names can be found in the <tt>CfgDifficultyPresets</tt> config class or in | | Checks specific difficulty settings of the current user. Difficulty flag names can be found in the <tt>CfgDifficultyPresets</tt> config class or in | ||
[[server.armaprofile|ArmA profile]] file under class <tt>DifficultyPresets/xxx/Options</tt> (xxx being Recruit, Regular or Veteran). This command replaces [[difficultyEnabled]] as many options have multiple values and former command only provided [[Boolean]] return. | [[server.armaprofile|ArmA profile]] file under class <tt>DifficultyPresets/xxx/Options</tt> (xxx being Recruit, Regular or Veteran). This command replaces [[difficultyEnabled]] as many options have multiple values and former command only provided [[Boolean]] return. | ||
| '''difficultyOption''' optionName | | '''difficultyOption''' optionName | ||
|p1= optionName: [[String]] - difficulty option name | |p1= optionName: [[String]] - difficulty option name | ||
| [[Number]] | | [[Number]] | ||
|x1= <code>[[hint]] [[str]] ([[difficultyOption]] "friendlyTags");</code> | |x1= <code>[[hint]] [[str]] ([[difficultyOption]] "friendlyTags");</code> | ||
|x2= Remember last [[cameraView]] per vehicle:<code>[[player]] [[addEventHandler]] ["GetOutMan", | |x2= Remember last [[cameraView]] per vehicle:<code>[[player]] [[addEventHandler]] ["GetOutMan", | ||
{ | { | ||
Line 29: | Line 29: | ||
_unit [[switchCamera]] (_unit [[getVariable]] [_vehicle [[call]] [[BIS_fnc_netId]], "INTERNAL"]); | _unit [[switchCamera]] (_unit [[getVariable]] [_vehicle [[call]] [[BIS_fnc_netId]], "INTERNAL"]); | ||
}; | }; | ||
}];</code> | }];</code> | ||
| [[difficulty]], [[difficultyEnabledRTD]], [[Arma 3 Difficulty Menu]], [[missionDifficulty]] | | [[difficulty]], [[difficultyEnabledRTD]], [[Arma 3 Difficulty Menu]], [[missionDifficulty]] | ||
}} | }} |
Revision as of 00:29, 18 January 2021
Description
- Description:
- Checks specific difficulty settings of the current user. Difficulty flag names can be found in the CfgDifficultyPresets config class or in ArmA profile file under class DifficultyPresets/xxx/Options (xxx being Recruit, Regular or Veteran). This command replaces difficultyEnabled as many options have multiple values and former command only provided Boolean return.
- Groups:
- Difficulty
Syntax
- Syntax:
- difficultyOption optionName
- Parameters:
- optionName: String - difficulty option name
- Return Value:
- Number
Examples
- Example 1:
hint str (difficultyOption "friendlyTags");
- Example 2:
- Remember last cameraView per vehicle:
player addEventHandler ["GetOutMan", { params ["_unit", "_role", "_vehicle", "_turret"]; _unit setVariable [_vehicle call BIS_fnc_netId, cameraView]; }]; player addEventHandler ["GetInMan", { if (difficultyOption "thirdPersonView" == 2) then { params ["_unit", "_role", "_vehicle", "_turret"]; _unit switchCamera (_unit getVariable [_vehicle call BIS_fnc_netId, "INTERNAL"]); }; }];
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 March 23, 2016 - 19:06 (UTC)
- Muf
-
Arma 3 options:
- reducedDamage
- groupIndicators
- friendlyTags
- enemyTags
- detectedMines
- commands
- waypoints
- weaponInfo
- stanceIndicator
- staminaBar
- weaponCrosshair
- visionAid
- thirdPersonView
- cameraShake
- scoreTable
- deathMessages
- vonID
- mapContent
- autoReport
- multipleSaves