1169 {
1170 int gear;
1171
1172 if (newGear == -1)
1173 {
1177 }
1178 else
1179 {
1180 gear = newGear;
1181 }
1182
1183 if (LightIsOn())
1184 {
1187
1188 switch (m_HeadlightsState)
1189 {
1192
1193 break;
1194
1195 default:
1197 }
1198
1199
1200 }
1201 else
1202 {
1206 }
1207
1208
1209
1210 switch (gear)
1211 {
1213 m_RearLightType = MotorbikeRearLightType.BRAKES_ONLY;
1214 else
1215 m_RearLightType = MotorbikeRearLightType.NONE;
1216 }
1217
1218
1219
1220
1221
1222 if (m_RearLightType != MotorbikeRearLightType.NONE && m_HeadlightsState != CarHeadlightBulbsState.NONE)
1223 {
1224 switch (m_RearLightType)
1225 {
1226 case MotorbikeRearLightType.BRAKES_ONLY:
1228
1229 break;
1230
1231 default:
1234 }
1235 }
1236 else
1237 {
1240 }
1241 }
CarGearboxType
Enumerated gearbox types. (native, do not change or extend)
proto native CarGearboxType GearboxGetType()
Returns gearbox type. See CarGearboxType enum for more info.
proto native CarAutomaticGearboxMode GearboxGetMode()
Returns gearbox mode. This is useful when motorbike has automatic gearbox.
proto native int GetGear()
Returns the index of the future gear, -1 if there is no engine.
bool HasGangedTailAndBrakeLights()
ref VehicleLightsComponent m_LightsComponent