Boat Auto Pilot enables hands-free navigation for player-built boats in Rust. Players sitting at a boat's steering wheel can place a map marker to set a destination, and the boat will automatically navigate there using its engines and sails. The autopilot handles steering, manages engines and sails for optimal speed, avoids shallow water, and stops when arriving at the destination.
The plugin works with boats using engines, sails, or both, automatically using whichever propulsion system is available. When approaching the destination, it intelligently slows down by turning off engines while keeping sails open for gentle arrival.
Features
- Map marker navigation - Set destinations by placing map markers while seated at the steering wheel
- Smart propulsion management - Automatically uses engines, sails, or both depending on what's available
- Intelligent slowing - Turns off engines near the destination to avoid overshooting while maintaining sail control
- Shallow water detection - Monitors water depth ahead and stops autopilot if shallow water is detected
- Obstacle clearing - Optionally destroys junk piles and dive site buoys in the boat's path
- Fuel management - Monitors engine fuel levels and stops if fuel runs out (configurable)
- Team support - All teammates aboard see navigation visuals and receive autopilot notifications
- Visual navigation aids - Shows destination markers, distance, estimated arrival time, and directional arrows to teammates
- Safety features - Automatically stops when players mount the steering wheel or when no players are aboard
Permissions
- boatautopilot.use -- Allows using autopilot and seeing the initial steering wheel tip
Commands
Player Commands
/autopilot-- Displays current autopilot status and instructions/autopilot stop-- Manually stops the active autopilot
Admin Commands
boatautopilot.stop all-- Stops all active autopilots server-wideboatautopilot.stop <playerID>-- Stops autopilot for specific player
Configuration
JSON:
{
"Version": "1.0.0",
"General Settings": {
"Chat Command Name": "autopilot",
"Maximum Autopilot Distance (0 = Unlimited)": 0.0,
"Require Fuel For Engines": true,
"Remove Map Marker When Autopilot Stops": true,
"Stop Autopilot When No Players On Boat": true,
"Destroy Water Obstacles In Path": true
},
"Navigation Settings": {
"Distance To Consider Arrived At Destination": 15.0,
"Distance To Start Slowing Down (Engines Off, Sails Only)": 50.0,
"Minimum Water Depth Required": 4.0
}
}
General Settings
Chat Command Name-- The chat command players use to check status and stop autopilotMaximum Autopilot Distance-- Maximum allowed distance to destination in meters. Set to0to allow unlimited rangeRequire Fuel For Engines-- Whentrue, boats with engines must have fuel to engage autopilot. When false, engines work without fuelRemove Map Marker When Autopilot Stops-- Whentrue, automatically removes the destination marker when autopilot stops for any reasonStop Autopilot When No Players On Boat-- Whentrue, autopilot disengages when all players leave the boatDestroy Water Obstacles In Path-- Whentrue, automatically destroys junk piles and dive site buoys in the boat's path to prevent collisions
Navigation Settings
Distance To Consider Arrived At Destination-- Distance in meters at which the boat is considered to have arrived at the destinationDistance To Start Slowing Down-- Distance in meters at which engines turn off and the boat relies on sails only for gentle approach. This prevents overshooting the destinationMinimum Water Depth Required-- Minimum water depth in meters required for safe navigation. Autopilot stops if water depth ahead falls below this value
How to Use
Basic Usage
- Board your boat - Get into any player-built boat
- Sit at the steering wheel - Mount the steering wheel seat
- Place a map marker - Open your map (default:
G) and place a marker at your desired destination - Autopilot engages - The boat will automatically navigate to the marker
- Dismount or wait - You can dismount the steering wheel and let the boat sail itself
During Autopilot
What you'll see:- Green arrow above the boat pointing toward the destination
- Destination marker showing distance and estimated arrival time
- The steering wheel animates as if being controlled
- Engines and sails activate automatically
- Place a new map marker - autopilot switches to the new destination
- Mount the steering wheel, or
- Use
/autopilot stop, or - Remove the map marker
Propulsion Types
The plugin automatically detects and uses available propulsion:- Engines and sails - Uses both for maximum speed
- Engines only - Motor rowboats and RHIBs without sails
- Sails only (slower speed) - Rowboats without engines
Autopilot Behavior
Navigation Logic
The autopilot continuously adjusts steering to stay on course toward the destination. It uses the boat's sail direction (if available) or hull orientation to determine forward direction, then calculates the angle to the target and adjusts steering accordingly.Speed Management
- Far from destination - Engines on, sails open for maximum speed
- Approaching destination - Engines turn off at the configured slowing distance, sails remain open for controlled approach
- Arrival - All engines and sails turn off when within the arrival distance
Safety Checks
Autopilot automatically stops when:- Arrived at destination - Within configured arrival distance
- Shallow water detected - Water depth ahead falls below minimum required depth
- Fuel depleted - Engines run out of fuel (if fuel requirement is enabled)
- Anchor lowered - Someone drops the anchor
- Manual control - Someone mounts the steering wheel
- No passengers - All players leave the boat (if configured)
- Marker removed - The destination map marker is deleted
- Stuck - Boat speed remains below 0.3 for 4 seconds while far from destination
Obstacle Handling
WhenDestroy Water Obstacles In Path is enabled:- Scans 15 meters ahead every 1.5 seconds
- Automatically destroys junk piles and dive site buoys within 20 meters
- Prevents collisions that could stop or damage the boat
Team Features
All teammates aboard the boat see:- Navigation visuals (destination marker, directional arrows)
- Autopilot status notifications
- Distance and estimated arrival time
Localization
JSON:
{
"Error.NoPermission": "You do not have permission to use this command.",
"Error.DestinationTooShallow": "The destination is too shallow for navigation.",
"Error.DestinationTooFar": "The destination is too far away.",
"Error.NoPropulsion": "This boat has no engines or sails.",
"Error.OutOfFuel": "The engines have no fuel.",
"Error.AnchorDown": "Raise the anchor before engaging autopilot.",
"Notification.Activated": "Autopilot engaged! Propelled by {1}. Place a new marker to change destination. To disengage, sit at the steering wheel or type /{0} stop.",
"Notification.Stopped": "Autopilot disengaged.",
"Stopped.ManualControl": "Autopilot disengaged. Manual control resumed.",
"Stopped.NoPlayers": "Autopilot disengaged. No players aboard.",
"Stopped.ShallowWater": "Autopilot disengaged. Shallow water detected ahead.",
"Stopped.OutOfFuel": "Autopilot disengaged. Out of fuel.",
"Stopped.Stuck": "Autopilot disengaged. The boat appears to be stuck.",
"Stopped.AnchorLowered": "Autopilot disengaged. The anchor was lowered.",
"Stopped.MarkerRemoved": "Autopilot disengaged. The destination marker was removed.",
"Notification.Arrived": "You have arrived at your destination!",
"Propulsion.Both": "engines and sails",
"Propulsion.EnginesOnly": "engines",
"Propulsion.SailsOnly": "sails only (slower speed)",
"Status.Active": "Autopilot is active. Distance to destination: {0}m.",
"Status.NotActive": "Autopilot is not active.",
"Info.PlaceMarker": "Sit at the steering wheel and place a map marker to engage autopilot.",
"Marker.Label": "Autopilot Destination",
"Tip.SteeringWheel": "Place a map marker to engage autopilot."
}