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

◆ CanReleaseAttachment()

override bool CivilianSedan::CanReleaseAttachment ( EntityAI attachment)
inlineprotected

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

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

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