StationSensor
The StationSensor is a component used in Railux 6 Ultra to manage station interactions, such as stopping trains, opening/closing doors, and configuring station-specific behaviors.
API Structure
All configurable properties are stored in the API folder under the StationSensor object. Below is a list of each property and its usage.
Properties
DebounceDuration
Number
Time (seconds) to wait before the sensor can trigger again. Prevents repeated triggers in quick succession.
DoorClosingDuration
Number
Time (seconds) the doors take to close after the stop duration ends.
DoorL
BoolValue
Controls whether the DoorL should be opened at this station.
DoorR
BoolValue
Controls whether the DoorR should be opened at this station.
StationName
String
The name of this station (e.g., "Central Station"). Can be used alongside Route System
StopDuration
Number
How long (seconds) the train should remain stopped at this station.
TargetSpeedWhenDepart
Number
The target speed (studs/second) the train should accelerate to upon departure. Can be any rational real number.
Property Details
DebounceDuration (NumberValue)
Purpose: Prevents the station sensor from being triggered multiple times in rapid succession.
Example: If set to
5, the sensor can only be triggered once every 5 seconds.
DoorClosingDuration (NumberValue)
Purpose: After the train's stop duration, this is how long the system believes that the doors remain open before closing.
Example: Set to
3for a 3-second door closing period.
DoorL (BoolValue)
Purpose: Indicates if the left doors (If Driver is at Car1, right doors otherwise) should open at this station.
Usage: Set to
trueto open,falseto keep closed.
DoorR (BoolValue)
Purpose: Indicates if the right doors (If Driver is at Car1, left doors otherwise) should open at this station.
Usage: Set to
trueto open,falseto keep closed.
StationName (StringValue)
Purpose: Stores the display name of the station for in-game GUIs, announcements, etc.
StopDuration (NumberValue)
Purpose: How long the train should stop at the station before departing.
Example:
10for a 10-second stop.
TargetSpeedWhenDepart (NumberValue)
Purpose: The speed at which the train should accelerate when leaving the station.
Example:
30means the train will accelerate to 30 studs/second.
Last updated