Pawns
Pawns a player controller can possess.
- DRW_VesselPawn (DRW Vessel Pawn), DRW_DronePawn (DRW Drone Pawn)
DRW_VesselPawn
Section titled “DRW_VesselPawn”DRW Vessel Pawn · shipped as BP_Dinghy, BP_Runabout
A boat the player possesses directly, like a vehicle. It carries the same buoyancy, movement, input and camera components as a vessel. It is abstract: use a Blueprint child such as the shipped dinghy and runabout.
Guide: Your first vessel, Building a vessel from your own mesh
Properties
Section titled “Properties”DRW Vessel › Possession
| Property | Default | Description |
|---|---|---|
Original PawnOriginalPawnAPawn* | Pawn to return to when exiting vessel (set by direct possession flow). When a DronePawn (or any pawn) directly possesses this VesselPawn, the original pawn is stored here so the player can return to it. Blueprint read only. Replicated. |
DRW Vessel › State
| Property | Default | Description |
|---|---|---|
InputInputFDRW_VesselInput | Current input state from controlling player. Set by VesselInputComponent (locally or via Server RPC). Read by MovementComponent to drive physics. Blueprint read only. Replicated. |
DRW Vessel
| Property | Default | Description |
|---|---|---|
Vessel DataVesselDataUDRW_VesselDataAsset* | Vessel configuration data asset. | |
Hull Mesh AssetHullMeshAssetUStaticMesh* | Hull mesh to use. |
DRW Vessel › Network
| Property | Default | Description |
|---|---|---|
Enable MultiplayerbEnableMultiplayerbool | true | Enable multiplayer support. |
Net Update RateNetUpdateRatefloat | 30 1 to 60 | Network update frequency in Hz. Editable when Enable Multiplayer. |
Components
| Property | Default | Description |
|---|---|---|
Hull MeshHullMeshUStaticMeshComponent* | Read only. | |
Physics BodyPhysicsBodyUDRW_PhysicsBodyComponent* | Read only. | |
BuoyancyBuoyancyUDRW_BuoyancyComponent* | Read only. | |
MovementMovementUDRW_VesselMovementComponent* | Read only. | |
ReplicationReplicationUDRW_SmoothReplicationComponent* | Read only. | |
Vessel InputVesselInputUDRW_VesselInputComponent* | Read only. | |
Vessel CameraVesselCameraUDRW_VesselCameraComponent* | Read only. |
Functions
Section titled “Functions”| Function | Inputs | Outputs | Description |
|---|---|---|---|
Set Vessel DataSetVesselData | New Vessel Data UDRW_VesselDataAsset* | Set the vessel data asset. Configures all components. | |
Get Vessel DataGetVesselData | Return UDRW_VesselDataAsset* | Get the current vessel data asset Pure. | |
Get SpeedGetSpeed | Return float | Get current speed in cm/s Pure. | |
Get Speed KnotsGetSpeedKnots | Return float | Get current speed in knots Pure. | |
Get HeadingGetHeading | Return float | Get current heading in degrees (0-360) Pure. | |
Is In WaterIsInWater | Return bool | Is the vessel currently in water? Pure. | |
Is PlaningIsPlaning | Return bool | Is the vessel currently planing? Pure. | |
Has Physics AuthorityHasPhysicsAuthority | Return bool | Does this instance have physics authority? (Server or standalone) Pure. | |
Get Hull MeshGetHullMesh | Return UStaticMeshComponent* | Pure. | |
Get Physics BodyGetPhysicsBody | Return UDRW_PhysicsBodyComponent* | Pure. | |
Get BuoyancyGetBuoyancy | Return UDRW_BuoyancyComponent* | Pure. | |
Get MovementGetMovement | Return UDRW_VesselMovementComponent* | Pure. | |
Get Vessel Input ComponentGetVesselInputComponent | Return UDRW_VesselInputComponent* | Pure. | |
Get Vessel CameraGetVesselCamera | Return UDRW_VesselCameraComponent* | Pure. | |
Get ReplicationGetReplication | Return UDRW_SmoothReplicationComponent* | Pure. |
DRW_DronePawn
Section titled “DRW_DronePawn”DRW Drone Pawn · shipped as BP_Drone
A free-flying camera pawn for testing and demos. It flies with Enhanced Input, can occupy vessel seats (it carries a seat occupant component) and can possess vessel pawns (it carries a vessel possession component).
Guide: Your first vessel
Properties
Section titled “Properties”DRW Drone › Movement
| Property | Default | Description |
|---|---|---|
Fly SpeedFlySpeedfloat | 1000 | Normal flight speed (cm/s) |
Sprint SpeedSprintSpeedfloat | 3000 | Sprint flight speed (cm/s) |
DRW Drone › Camera
| Property | Default | Description |
|---|---|---|
Look SensitivityLookSensitivityfloat | 0.5 | |
Camera Transition SpeedCameraTransitionSpeedfloat | 5 | How fast to interpolate camera when entering/exiting seat |
DRW Drone › Interaction
| Property | Default | Description |
|---|---|---|
Seat Interaction RangeSeatInteractionRangefloat | 500 | Maximum range to detect vessel seats (cm) |
Seat Camera OffsetSeatCameraOffsetFVector | (-300, 0, 200) | Offset from seat when controlling vessel |
DRW Drone › Input
| Property | Default | Description |
|---|---|---|
Input Mapping PriorityInputMappingPriorityint32 | 0 | Input mapping context priority |
DRW Drone › Ocean
| Property | Default | Description |
|---|---|---|
Small Waves DataSmallWavesDataUDRW_WaveDataAsset* | ||
Medium Waves DataMediumWavesDataUDRW_WaveDataAsset* | ||
High Waves DataHighWavesDataUDRW_WaveDataAsset* | ||
Wave Blend DurationWaveBlendDurationfloat | 10 |
Components
| Property | Default | Description |
|---|---|---|
Waterline ComponentWaterlineComponentUDRW_WaterlineComponent* | Read only. | |
Collision SphereCollisionSphereUSphereComponent* | Read only. | |
Spring ArmSpringArmUSpringArmComponent* | Read only. | |
CameraCameraUCameraComponent* | Read only. | |
Movement ComponentMovementComponentUFloatingPawnMovement* | Read only. | |
Seat OccupantSeatOccupantUDRW_SeatOccupantComponent* | Seat occupant component - enables occupying vessel seats Read only. | |
Vessel PossessionVesselPossessionUDRW_VesselPossessionComponent* | Vessel possession component - enables direct VesselPawn possession Read only. |
Functions
Section titled “Functions”| Function | Inputs | Outputs | Description |
|---|---|---|---|
Try Enter Nearest SeatTryEnterNearestSeat | Return bool | Try to enter the nearest vessel seat. Returns True if successfully entered a seat | |
Exit Current SeatExitCurrentSeat | Return bool | Exit the current vessel seat and return to flying. Returns True if successfully exited | |
Toggle Vessel ControlToggleVesselControl | Toggle between flying and controlling vessel. | ||
Get Drone StateGetDroneState | Return EDRW_DroneState | Get current drone state. Pure. | |
Get Current SeatGetCurrentSeat | Return ADRW_VesselSeat* | Get the seat we’re currently in (if any). Pure. | |
Get Controlled VesselGetControlledVessel | Return ADRW_Vessel* | Get the vessel we’re currently controlling (if any). Pure. | |
Try Possess Nearest VesselTryPossessNearestVessel | Return bool | Try to directly possess the nearest VesselPawn. Returns True if a vessel was found and possession was requested | |
Get CameraGetCamera | Return UCameraComponent* | Pure. | |
Get Spring ArmGetSpringArm | Return USpringArmComponent* | Pure. | |
Get Seat OccupantGetSeatOccupant | Return UDRW_SeatOccupantComponent* | Pure. | |
Get Vessel PossessionGetVesselPossession | Return UDRW_VesselPossessionComponent* | Pure. |