{"name":"cadetMode","title":"cadetMode","type":"command","url":"https://community.bistudio.com/wiki/cadetMode","revid":325302,"updated":"2022-07-10T22:51:20Z","groups":["Difficulty"],"status":"ok","games":{"ofp":"1.00","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.00","arma3_since":"0.50","description":"**Prior to Arma 3** it returns if the player is currently playing in cadet or veteran mode.","syntaxes":[{"syntax":"cadetMode","params":[],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true when playing in cadet mode, false when playing in veteran mode"},"form":"nullary"}],"examples":[{"text":"SQS Syntax:\n\n```sqs\n? (cadetMode) : _AIsoldier setSkill 0.1\n```","code":["? (cadetMode) : _AIsoldier setSkill 0.1"]},{"text":"SQF Syntax:\n\n```sqf\nif (cadetMode) then { _AIsoldier setSkill 0.1 };\n```","code":["if (cadetMode) then { _AIsoldier setSkill 0.1 };"]}],"problems":"> [!NOTE]\n> This command returns the status of the global difficulty `showCadetHints`.\n> Use `difficulty in [0, 1]` to achieve the **original intended** functionality!","see_also":["hintCadet","difficulty"],"notes":[{"user":"Killswitch","date":"2009-12-01T17:49:00Z","text":"In Arma 2, this command will return true if the difficulty level is set to \"Recruit\" or \"Regular\". It returns false for the \"Veteran\" and \"Expert\" difficulty levels."}]}