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

◆ CanReleaseAttachment()

override bool Hatchback_02::CanReleaseAttachment ( EntityAI attachment)
inlineprotected

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

132 {
133 if (!super.CanReleaseAttachment(attachment))
134 {
135 return false;
136 }
137
138 if (EngineIsOn() || GetCarDoorsState("Hatchback_02_Hood") == CarDoorState.DOORS_CLOSED)
139 {
140 string attType = attachment.GetType();
141 if (attType == "CarRadiator" || attType == "CarBattery" || attType == "SparkPlug")
142 {
143 return false;
144 }
145 }
146
147 return true;
148 }
CarDoorState
Определения CarScript.c:2
proto native bool EngineIsOn()
Returns true when engine is running, false otherwise.
override int GetCarDoorsState(string slotType)

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