Allow checking dogtags inside vehicles and when sitting (#4619)

* Allow checking dogtag inside and when sitting

* Remove redundant format
This commit is contained in:
jonpas 2016-10-30 18:54:54 +01:00 committed by Glowbal
parent 9ac12aaee8
commit 657c790ee3
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ class CfgVehicles {
displayName = CSTRING(checkItem);
condition = "true";
statement = "";
exceptions[] = {"isNotInside", "isNotSitting"};
insertChildren = QUOTE(_this call DFUNC(addDogtagActions));
};
};

View File

@ -32,7 +32,7 @@ private _unitDogtagIDs = [];
//Create action children for all dogtags
private _actions = [];
{
private _displayName = format ["%1", getText (configFile >> "CfgWeapons" >> _x >> "displayName")];
private _displayName = getText (configFile >> "CfgWeapons" >> _x >> "displayName");
private _picture = getText (configFile >> "CfgWeapons" >> _x >> "picture");
private _action = [_x, _displayName, _picture, {_this call FUNC(checkDogtagItem)}, {true}, {}, _x] call EFUNC(interact_menu,createAction);