263 {
264 int state = EBoatOperationalState.OK;
265
267
268 if (GetHealthLevel("") >= GameConstants.STATE_RUINED || GetHealthLevel("Engine") >= GameConstants.STATE_RUINED)
269 {
270 state |= EBoatOperationalState.RUINED;
271 }
272
274 {
275 state |= EBoatOperationalState.NO_FUEL;
276 }
277
279 {
280 item = FindAttachmentBySlotName("SparkPlug");
281 if (!item || (item && item.IsRuined()))
282 state |= EBoatOperationalState.NO_IGNITER;
283 }
284
285 return state;
286 }
BoatFluid
Type of vehicle's fluid. (native, do not change or extend)
proto native float GetFluidFraction(MotorbikeFluid fluid)
override bool IsVitalSparkPlug()