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

◆ CanReleaseAttachment()

override bool OffroadHatchback::CanReleaseAttachment ( EntityAI attachment)
inlineprotected

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

140 {
141 if (!super.CanReleaseAttachment(attachment))
142 {
143 return false;
144 }
145
146 if (EngineIsOn() || GetCarDoorsState("NivaHood") == CarDoorState.DOORS_CLOSED)
147 {
148 string attType = attachment.GetType();
149 if (attType == "CarRadiator" || attType == "CarBattery" || attType == "SparkPlug")
150 {
151 return false;
152 }
153 }
154
155 return true;
156 }
CarDoorState
Определения CarScript.c:2
proto native bool EngineIsOn()
Returns true when engine is running, false otherwise.
override int GetCarDoorsState(string slotType)

Перекрестные ссылки EngineIsOn() и GetCarDoorsState().