DIFF

class CarControllerSource

DEPRECATED class left for backwards compatibility, methods are available on car itself now

Constructors 2

private void CarController()
private void ~CarController()

Methods 12

proto float GetSteering()

Returns the current steering value in range <-1, 1>.

proto void SetSteering(float in, bool analog = false)

Sets the steering value.

in
should be in range <-1, 1>
analog
indicates if the input value was taken from analog controller
proto float GetThrustTurbo()

Returns the current thrust turbo modifier value in range <0, 1>.

proto float GetThrustGentle()

Returns the current thrust gentle modifier value in range <0, 1>.

proto float GetThrust()

Returns the current thrust value in range <0, 1>.

proto void SetThrust(float in, float gentle = 0, float turbo = 0)

Sets the thrust value.

in
should be in range <0, 1>
gentle
should be in range <0, 1>, thrust modifier
turbo
should be in range <0, 1>, thrust modifier
proto float GetBrake()

Returns the current brake value in range <0, 1>.

proto void SetBrake(float in, float panic = 0)

Sets the brake value.

in
should be in range <0, 1>
panic
should be in range <0, 1>
proto int GetGear()

Returns index of the current gear.

proto void ShiftUp()
proto void ShiftTo(CarGear gear)
proto void ShiftDown()