Skip to content

Possession vs seats

DRW gives you three ways to drive a boat. They use different vessel classes, so pick one before you build the boat.

PossessionSeatsDirect input
Vessel classDRW Vessel PawnDRW VesselDRW Vessel
On the player’s pawnDRW Vessel Possession componentDRW Seat Occupant componentNothing
The player isThe boat (the controller moves to it)Still their own pawn, sitting at a seatNot involved
Who drivesOne playerThe occupant of the Helm seatYour Blueprint, AI or C++ code
PassengersNoYes, Passenger seatsNo
CameraThe boat’s cameraThe player’s own, or a seat cameraYour choice
Shipped exampleBP_Runabout, BP_Dinghy with BP_DroneNoneNone

The player’s controller leaves their pawn and possesses the boat. The boat’s own VesselInput and VesselCamera components take over, so the keys and camera from Your first vessel apply.

Add a DRW Vessel Possession component to the pawn that should be able to board. It provides:

NodeWhat it does
Find Nearest Vessel Pawn (Range, cm)Returns the nearest Vessel Pawn within range that no player drives. Distance is measured to the closest point on the hull’s collision.
Find Nearest Vessel Pawn DefaultThe same, with the component’s Search Range (500 cm).
Request Possess Vessel (Target Vessel)Asks the server to possess the boat. Returns true when the request was sent, not when it succeeded. Fails on the server if a player already drives that boat.
On Vessel PossessedEvent: fires on the server when the possession happens.
On Returned From VesselEvent: fires when the controller comes back to this pawn, on the machine that made the request.

While the player is aboard, F leaves the boat: the controller possesses the original pawn again. The possession component does not move, hide or freeze that original pawn; it stays where it was, without a controller. The boat keeps floating with zero input.

Things to know:

  • The F exit only exists when the boat was boarded through Request Possess Vessel, because that is how the boat learns which pawn to return to. A Vessel Pawn possessed with the engine’s Possess node, or spawned as the default pawn, drives normally but has no exit key. The exit request is not exposed to Blueprint, so the F key is the built-in way back.
  • One player per boat. Others cannot ride along: use seats for that.
  • An AI controller that possesses a Vessel Pawn does not drive it, because the Vessel Input component only reads player input. Use a DRW Vessel with direct input for AI boats.

In multiplayer the request goes to the server, the server simulates the boat, and the driver’s client sends its input to the server whenever it changes, up to Input Send Rate times per second (30 by default). Other clients receive the driver’s input values, so you can animate a steering wheel or oars from the Vessel Pawn’s Input; on the driver’s own client, read Get Local Input from the VesselInput component instead. See Multiplayer model for the full network picture.

The player keeps their own pawn and takes a seat on a DRW Vessel. Several players can be aboard; the one at the Helm drives.

DRW Vessel Seat is an actor you attach to a DRW Vessel: as a Child Actor component in the vessel Blueprint, or attached to a placed vessel in the level. Seats register with their vessel at Begin Play and get an index (Get Seat By Index, Get All Seats, Get Seat Count and Find Available Seat on the vessel).

SettingDefaultWhat it does
Seat TypeHelmHelm passes its input to the vessel. Passenger has no control. Gunner and Engineer give no control, like Passenger.
Auto Find VesselOnLinks the seat to the first DRW Vessel among the actors it is attached to.
Linked VesselNoneSet it by hand on a placed seat to link it without attaching.
Seat Offset, Seat RotationZeroWhere the occupant is placed, relative to the seat.
Hide Occupant When SeatedOffHides the occupant while seated, for first-person setups.
Use Seat CameraOffSwitch the player’s view to the seat’s camera while seated.
Seat Camera / Vessel Seat CameraNoneThe camera to use: a plain Camera component, or a DRW Vessel Camera. Vessel Seat Camera wins when both are set. Both are component references, so assign them in the seat Blueprint’s graph.

The seat also has an Interaction Volume, a 100 × 100 × 200 cm box that overlaps pawns. DRW does not use it; it is there for your interaction system.

Add a DRW Seat Occupant component to every pawn or character that should sit in seats. A seat refuses any actor without it. It should sit on a pawn, because that is what carries the player’s network connection.

NodeWhat it does
Find Nearest Seat (Range, cm, default 500)Nearest free seat within range, by distance to the seat actor.
Request Occupy Seat (Seat)Takes the seat; on a client the request goes to the server.
Request Vacate SeatLeaves the current seat, or the one just requested.
Get Current Seat, Get Target Or Current Seat, Is In Seat, Is In Seat Or Pending, Get Current VesselSeat state. The “target” and “pending” versions also cover the short wait for the server to confirm.
On Seat Entered, On Seat ExitedEvents with the seat. They fire on the server and on clients.

Taking a seat fails when the seat is already occupied, when the actor has no Seat Occupant component, or when it already sits in another seat.

What taking a seat does, and what it does not

Section titled “What taking a seat does, and what it does not”

When a pawn takes a seat, DRW:

  • moves and turns it once to match the seat, with Seat Offset (in the seat’s space) and Seat Rotation added,
  • hides it if Hide Occupant When Seated is on,
  • makes a Helm seat the vessel’s controller,
  • switches the view to the seat camera if Use Seat Camera is on (0.15 s blend), and back to the pawn when it leaves.

It does not attach the occupant to the boat, stop its movement or play an animation. Without your own logic the character stays where the seat was while the boat sails away. In On Seat Entered, attach the pawn to the seat (for example Attach Actor To Actor), disable its movement and play a sitting pose; undo it in On Seat Exited.

The seat itself does not read keys. Make a Blueprint child of DRW Vessel Seat and add a DRW Vessel Input component to it. While a locally controlled player sits in that Helm seat, the component binds that player’s keys (same Input Source options as on a Vessel Pawn, see Input) and the vessel follows them. When the player leaves, the input resets to zero.

Without an input component you can set the helm input yourself with Set Seat Input on the server. If the occupant is a C++ pawn that implements IDRW_VesselController, the seat also reads that pawn’s input every tick while it is locally controlled, which can override the input component.

The seat’s On Occupancy Changed (seat, previous occupant, new occupant) fires where the seat was taken or left, which is the server. For client-side reactions use the occupant’s On Seat Entered and On Seat Exited. The vessel’s On Control Changed fires when its controller changes, for example when someone takes or leaves the Helm.

In multiplayer the seat occupant is replicated. A seated client sends its helm input through its own Seat Occupant component, and the server accepts it only from the pawn that actually sits in that seat. A vessel always stays network-relevant to the players seated on it.

The shipped BP_Drone can also take a free seat (F, when no Vessel Pawn is in range): it then hovers at Seat Camera Offset behind the seat. The drone itself sends no helm input. DRW ships no seat Blueprint.

A DRW Vessel also accepts input from code, with no player involved. This suits AI boats, scripted traffic and cutscenes.

  • Call Set Input on the vessel with a DRW Vessel Input struct (Throttle, Steering, the sheets, paddles and so on; the ranges are in Engines, sails, rudders and foils). The value holds until you set a new one. Call it on the server; clients receive the current input for animation through Get Current Input.
  • Set Input only lasts while the vessel has no controller. A controller (a Helm seat, or a C++ controller) overwrites the input every tick.
  • Set Vessel Controller assigns a controller object. It must implement the C++ interface IDRW_VesselController (GetVesselInput, OnVesselControlBegin, OnVesselControlEnd). The interface’s functions are C++ only, so a Blueprint class cannot supply input through it; from Blueprint use Set Input.
  • A Vessel Pawn cannot be driven this way: it takes its input from its own Vessel Input component every tick.
  • The boat is the gameplay and only one person drives it: possession with a DRW Vessel Pawn. It works out of the box with the shipped boats and drone.
  • Characters walk on deck, several players share a boat, or the driver must stay visible at the wheel: seats on a DRW Vessel. Plan for attaching and animating the character yourself.
  • Nobody plays the boat: direct input on a DRW Vessel.

Reference: DRW Vessel Pawn, DRW Vessel, DRW Vessel Seat, DRW Vessel Possession, DRW Seat Occupant, FDRW_VesselInput.