DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CanDisplayAttachmentCategory()

override bool CivilianSedan::CanDisplayAttachmentCategory ( string category_name)
inlineprotected

См. определение в файле Vehicles/InheritedCars/CivilianSedan.c строка 157

158 {
159 //super
160 if (!super.CanDisplayAttachmentCategory(category_name))
161 return false;
162 //
163
164 category_name.ToLower();
165 if (category_name.Contains("engine"))
166 {
167 if (GetCarDoorsState("CivSedanHood") == CarDoorState.DOORS_CLOSED)
168 return false;
169 }
170
171 return true;
172 }
CarDoorState
Определения CarScript.c:2
override int GetCarDoorsState(string slotType)
bool Contains(string sample)
Returns true if sample is substring of string.
Определения EnString.c:286
proto int ToLower()
Changes string to lowercase. Returns length.

Перекрестные ссылки string::Contains(), GetCarDoorsState() и string::ToLower().