Open Rails

MSTSNotchController.SetValue Method

[This is preliminary documentation and subject to change.]

Sets the actual value of the controller, and adjusts the actual notch to match.

public int SetValue(
   float value
);

Parameters

value
Normalized value the controller to be set to. Normally is within range [-1..1]

Return Value

1 or -1 if there was a significant change in controller position, otherwise 0. Needed for hinting whether a serializable command is to be issued for repeatability. Sign is indicating the direction of change, being displayed by confirmer text.

Implements

IController.SetValue

See Also

MSTSNotchController Class | ORTS Namespace