difficultyOption: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)]]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 7: Line 6:


|gr1= Difficulty |GROUP1=
|gr1= Difficulty |GROUP1=
____________________________________________________________________________________________


| 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  
Line 17: Line 15:


| [[Number]] |RETURNVALUE=
| [[Number]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>[[hint]] [[str]] ([[difficultyOption]] "friendlyTags");</code>  |EXAMPLE1=
|x1= <code>[[hint]] [[str]] ([[difficultyOption]] "friendlyTags");</code>  |EXAMPLE1=
Line 34: Line 31:
}];</code>  |EXAMPLE2=
}];</code>  |EXAMPLE2=


____________________________________________________________________________________________


| [[difficulty]], [[difficultyEnabledRTD]], [[Arma 3 Difficulty Menu]], [[missionDifficulty]] |SEEALSO=
| [[difficulty]], [[difficultyEnabledRTD]], [[Arma 3 Difficulty Menu]], [[missionDifficulty]] |SEEALSO=

Revision as of 00:45, 17 January 2021

Hover & click on the images for description

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

See also:
difficultydifficultyEnabledRTDArma 3 Difficulty MenumissionDifficulty

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

Bottom Section