forceCadetDifficulty: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (example) |
Killzone Kid (talk | contribs) No edit summary |
||
Line 12: | Line 12: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|descr= | |descr= Forces <tt>showCadetHints</tt> and <tt>showCadetWP</tt> global Cadet [[Arma_3_Difficulty_Menu | Arma 3 difficulty]], returns previous settings. |Description= | ||
|mp= |Multiplayer Behaviour= | |mp= |Multiplayer Behaviour= | ||
Line 19: | Line 19: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|s1= [[forceCadetDifficulty]] [ | |s1= [[forceCadetDifficulty]] [showCadetHints, showCadetWP] |Syntax= | ||
|p1= | |p1= showCadetHints: [[Boolean]] - <tt>showCadetHints</tt> difficulty|Parameter 1= | ||
|p2= | |p2= showCadetWP: [[Boolean]] - <tt>showCadetWP</tt> difficulty|Parameter 2= | ||
|r1= [[Array]] of [[Boolean]]s - [ | |r1= [[Array]] of [[Boolean]]s - [prev_showCadetHints, prev_showCadetWP] |Return Value= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 07:12, 17 August 2020
Description
- Description:
- Forces showCadetHints and showCadetWP global Cadet Arma 3 difficulty, returns previous settings.
- Groups:
- Uncategorised
Syntax
- Syntax:
- forceCadetDifficulty [showCadetHints, showCadetWP]
- Parameters:
- showCadetHints: Boolean - showCadetHints difficulty
- showCadetWP: Boolean - showCadetWP difficulty
- Return Value:
- Array of Booleans - [prev_showCadetHints, prev_showCadetWP]
Examples
- Example 1:
private _previousSettings = forceCadetDifficulty [true, false];
- Example 2:
private _fnc_forceCadetDifficulty = { params ["_OKButtonPressed"]; if (_OKButtonPressed) then { forceCadetDifficulty (switch (toLowerANSI configName ((configFile >> "CfgDifficultyPresets") select difficulty)) do { case "recruit"; case "regular": { // showCadetHints = 1; // showCadetWP = 1; [true, true] }; case "veteran": { // showCadetHints = 0; // showCadetWP = 1; [false, true] }; default { // showCadetHints = 0; // showCadetWP = 0; [false, false] }; }); }; }; [true] call _fnc_forceCadetDifficulty; [missionNamespace, "GameOptionsExited", _fnc_forceCadetDifficulty] call BIS_fnc_addScriptedEventHandler;
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
[[Category:Introduced with arma3dev version ]][[ Category: arma3dev: New Scripting Commands | FORCECADETDIFFICULTY]][[ Category: arma3dev: Scripting Commands | FORCECADETDIFFICULTY]]