difficultyOption: Difference between revisions
Jump to navigation
Jump to search
m (Replaced <code> with <sqf>) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 6: | Line 6: | ||
|gr1= Difficulty | |gr1= Difficulty | ||
|descr= Checks specific difficulty settings of the current user. Difficulty flag names can be found in the {{hl|CfgDifficultyPresets}} config class or in | |descr= Checks specific difficulty settings of the current user. | ||
[[server.armaprofile|ArmA profile]] file under class {{hl|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. | Difficulty flag names can be found in the {{hl|CfgDifficultyPresets}} config class or in [[server.armaprofile|ArmA profile]] file under class {{hl|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. | |||
|s1= [[difficultyOption]] optionName | |s1= [[difficultyOption]] optionName | ||
|p1= optionName: [[String]] - difficulty option name | |p1= optionName: [[String]] - difficulty option name; one of: | ||
{{Columns|5| | |||
| | |||
* reducedDamage | * reducedDamage | ||
* groupIndicators | * groupIndicators | ||
Line 59: | Line 34: | ||
* autoReport | * autoReport | ||
* multipleSaves | * multipleSaves | ||
</ | }} | ||
|r1= [[Number]] | |||
|x1= <sqf>hint str (difficultyOption "friendlyTags");</sqf> | |||
|x2= Remember last [[cameraView]] per vehicle: | |||
<sqf>player addEventHandler ["GetOutMan", { | |||
params ["_unit", "", "_vehicle"]; | |||
_unit setVariable [_vehicle call BIS_fnc_netId, cameraView]; | |||
}]; | |||
player addEventHandler ["GetInMan", { | |||
if (difficultyOption "thirdPersonView" == 2) then { | |||
params ["_unit", "", "_vehicle"]; | |||
_unit switchCamera (_unit getVariable [_vehicle call BIS_fnc_netId, "INTERNAL"]); | |||
}; | |||
}];</sqf> | |||
|seealso= [[difficulty]] [[difficultyEnabledRTD]] [[Arma 3: Difficulty Settings]] [[missionDifficulty]] | |||
}} |
Revision as of 14:14, 16 February 2023
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; one of:
- reducedDamage
- groupIndicators
- friendlyTags
- enemyTags
- detectedMines
- commands
- waypoints
- weaponInfo
- stanceIndicator
- staminaBar
- weaponCrosshair
- visionAid
- thirdPersonView
- cameraShake
- scoreTable
- deathMessages
- vonID
- mapContent
- autoReport
- multipleSaves
- Return Value:
- Number
Examples
- Example 1:
- Example 2:
- Remember last cameraView per vehicle:
player addEventHandler ["GetOutMan", { params ["_unit", "", "_vehicle"]; _unit setVariable [_vehicle call BIS_fnc_netId, cameraView]; }]; player addEventHandler ["GetInMan", { if (difficultyOption "thirdPersonView" == 2) then { params ["_unit", "", "_vehicle"]; _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