1717 * Public: No
1818 */
1919
20- params [[" _showOnly" , - 1 [- 1 ]]];
20+ params [[" _showOnly" , - 1 , [- 1 ]]];
2121
2222private _emptyOrgArray = [" " ,0 ,0 ," " ," " ];
2323
@@ -26,31 +26,24 @@ private _config = missionConfigFile >> "CfgLoadouts" >> _loadout;
2626
2727
2828private _regiment = getText (_config >> " regiment" );
29- _regiment = GETVAR(player ,EGVAR(Player ,Regiment),_configPlatoon );
29+ _regiment = GETVAR(player ,EGVAR(Player ,Regiment),_regiment );
3030_regiment = toLower _regiment ;
3131
3232private _company = getText (_config >> " company" );
33- _company = GETVAR(player ,EGVAR(Player ,Company),_configPlatoon );
33+ _company = GETVAR(player ,EGVAR(Player ,Company),_company );
3434_regiment = toLower _regiment ;
3535
3636private _platoon = getNumber (_config >> " platoon" );
37- _platoon = GETVAR(player ,EGVAR(Player ,Platoon),_configPlatoon );
37+ _platoon = GETVAR(player ,EGVAR(Player ,Platoon),_platoon );
3838
3939private _squad = getNumber (_config >> " squad" );
40- _squad = GETVAR(player ,EGVAR(Player ,Squad),_configPlatoon );
40+ _squad = GETVAR(player ,EGVAR(Player ,Squad),_squad );
4141
4242private _team = getText (_config >> " team" );
43- _team = GETVAR(player ,EGVAR(Player ,Team),_configPlatoon );
43+ _team = GETVAR(player ,EGVAR(Player ,Team),_team );
4444_team = toLower _team ;
4545
4646
47- private _configPlatoon = getNumber (_config >> " platoon" );
48- private _platoon = GETVAR(player ,EGVAR(Player ,Platoon),_configPlatoon );
49-
50- private _configCompany = getText (_config >> " company" );
51- private _company = GETVAR(player ,EGVAR(Player ,Company),_configCompany );
52- _company = toLower _company ;
53-
5447if (_showOnly isNotEqualTo - 1 ) exitWith {
5548 [_team , _squad , _platoon , _company , _regiment ] select _showOnly ;
5649};
0 commit comments