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

◆ CanReleaseAttachment()

override bool Truck_01_Base::CanReleaseAttachment ( EntityAI attachment)
inlineprotected

См. определение в файле Truck_01_Base.c строка 143

144 {
145 if (!super.CanReleaseAttachment(attachment))
146 {
147 return false;
148 }
149
150 if (EngineIsOn() && attachment.GetType() == "TruckBattery")
151 {
152 return false;
153 }
154
155 return true;
156 }
proto native bool EngineIsOn()
Returns true when engine is running, false otherwise.

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