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

◆ CanDisplayAttachmentCategory()

override bool Offroad_02::CanDisplayAttachmentCategory ( string category_name)
inlineprotected

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

189 {
190 if ( !super.CanDisplayAttachmentCategory(category_name))
191 {
192 return false;
193 }
194
195 category_name.ToLower();
196 if (category_name.Contains("engine"))
197 {
198 if (GetCarDoorsState("Offroad_02_Hood") == CarDoorState.DOORS_CLOSED)
199 {
200 return false;
201 }
202 }
203
204 return true;
205 }
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().