CfgVehicles – Take On Helicopters Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - " (={2,})([^ = ])(.*)([^ = ])(={2,}) * " to " $1 $2$3$4 $5 ")
 
(One intermediate revision by one other user not shown)
Line 34: Line 34:
|-
|-
|
|
===%1===
==== %1 ====
| %2
| %2
| %3
| %3

Latest revision as of 19:17, 31 January 2021

Export

For export, use following code:

startloadingscreen [""];

_sides = [
	localize "STR_EAST",
	localize "STR_WEST",
	localize "STR_GUERRILA",
	localize "STR_CIVILIAN",
	"",
	"",
	"",
	localize "STR_LOGIC"
];

_cfg = configfile >> "cfgVehicles";
_cfgCount = count _cfg - 1;
_export = "";
for "_c" from 0 to _cfgCount do {
	_class = _cfg select _c;
	if (isclass _class) then {

		_scope = getnumber (_class >> "scope");
		_side = (getnumber (_class >> "side"));
		if (_scope == 2 && _side != 4) then {
			_className = configname _class;
			_displayName = gettext (_class >> "displayName");
			_vehicleClass = gettext (configfile >> "cfgvehicleclasses" >> (gettext (_class >> "vehicleClass")) >> "displayName");
			_faction = gettext (_class >> "faction");
			_side = _sides select _side;

			_export = _export + format [
"
|-
|
==== %1 ====
| %2
| %3
| %4
| %5
",
				_displayName,
				_className,
				_vehicleClass,
				_side,
				_faction
			];

		};
	};
	progressloadingscreen (_c / _cfgCount);
};

copytoclipboard _export;

endloadingscreen;

++ Str 16:31, 27 October 2011 (CEST)