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.
| Possession | Seats | Direct input | |
|---|---|---|---|
| Vessel class | DRW Vessel Pawn | DRW Vessel | DRW Vessel |
| On the player’s pawn | DRW Vessel Possession component | DRW Seat Occupant component | Nothing |
| The player is | The boat (the controller moves to it) | Still their own pawn, sitting at a seat | Not involved |
| Who drives | One player | The occupant of the Helm seat | Your Blueprint, AI or C++ code |
| Passengers | No | Yes, Passenger seats | No |
| Camera | The boat’s camera | The player’s own, or a seat camera | Your choice |
| Shipped example | BP_Runabout, BP_Dinghy with BP_Drone | None | None |
Possession
Section titled “Possession”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:
| Node | What 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 Default | The 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 Possessed | Event: fires on the server when the possession happens. |
On Returned From Vessel | Event: 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’sPossessnode, 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.
The seat actor
Section titled “The seat actor”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).
| Setting | Default | What it does |
|---|---|---|
| Seat Type | Helm | Helm passes its input to the vessel. Passenger has no control. Gunner and Engineer give no control, like Passenger. |
| Auto Find Vessel | On | Links the seat to the first DRW Vessel among the actors it is attached to. |
| Linked Vessel | None | Set it by hand on a placed seat to link it without attaching. |
| Seat Offset, Seat Rotation | Zero | Where the occupant is placed, relative to the seat. |
| Hide Occupant When Seated | Off | Hides the occupant while seated, for first-person setups. |
| Use Seat Camera | Off | Switch the player’s view to the seat’s camera while seated. |
| Seat Camera / Vessel Seat Camera | None | The 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.
The occupant component
Section titled “The occupant component”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.
| Node | What 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 Seat | Leaves 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 Vessel | Seat state. The “target” and “pending” versions also cover the short wait for the server to confirm. |
On Seat Entered, On Seat Exited | Events 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.
Driving from the Helm
Section titled “Driving from the Helm”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.
Direct input
Section titled “Direct input”A DRW Vessel also accepts input from code, with no player involved. This suits AI boats, scripted traffic and cutscenes.
- Call
Set Inputon 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 throughGet Current Input. Set Inputonly lasts while the vessel has no controller. A controller (a Helm seat, or a C++ controller) overwrites the input every tick.Set Vessel Controllerassigns a controller object. It must implement the C++ interfaceIDRW_VesselController(GetVesselInput,OnVesselControlBegin,OnVesselControlEnd). The interface’s functions are C++ only, so a Blueprint class cannot supply input through it; from Blueprint useSet Input.- A Vessel Pawn cannot be driven this way: it takes its input from its own Vessel Input component every tick.
Which to choose
Section titled “Which to choose”- 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.