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.