CfgVehicles – Take On Helicopters Talk
Categories:
m (Created page with "== Export == For export, use following code: <pre>startloadingscreen [""]; _sides = [ localize "STR_EAST", localize "STR_WEST", localize "STR_GUERRILA", localize "STR_CIVILI...") |
Lou Montana (talk | contribs) m (Text replacement - " (={2,})([^ = ])(.*)([^ = ])(={2,}) * " to " $1 $2$3$4 $5 ") |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 33: | Line 33: | ||
" | " | ||
|- | |- | ||
| | | | ||
==== %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)