CfgVehicles – Take On Helicopters Talk
Jump to navigation
Jump to search
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)