New Config Entry buildText

Allows a string to replace the vehicle display name that will be created
which is typically displayed when building.
This commit is contained in:
icomrade
2016-07-22 11:06:45 -04:00
parent 082c0c13e6
commit f808bda2a9
3 changed files with 12 additions and 3 deletions

View File

@@ -92,7 +92,11 @@ _canBuild = [_pos, _this, true] call dze_buildChecks;
if (_canBuild select 0) then {
_classname = getText (configFile >> "CfgMagazines" >> DZE_buildItem >> "ItemActions" >> "Build" >> "create");
_classnametmp = _classname;
_text = getText (configFile >> "CfgVehicles" >> _classname >> "displayName");
if (isText (configFile >> "CfgMagazines" >> DZE_buildItem >> "ItemActions" >> "Build" >> "buildText")) then {
_text = getText (configFile >> "CfgMagazines" >> DZE_buildItem >> "ItemActions" >> "Build" >> "buildText");
} else {
_text = getText (configFile >> "CfgVehicles" >> _classname >> "displayName");
};
_ghost = getText (configFile >> "CfgVehicles" >> _classname >> "ghostpreview");
_lockable = 0; //default define if lockable not found in config file below