π₯οΈ VehicleWater
VehicleWater are entities which Characters can possesses and drive over the water with dynamic physics.
πAuthority
This class can only be spawned on π¦ Server side.
πͺInheritance
This class shares methods and events from Base Entity, Base Actor, Base Vehicle, Base Paintable, Base Damageable.
π§βπ»API Source
This page is auto-generated! The Functions, Properties and Events described here are defined in our GitHub's API Repository! Feel free to commit suggestions and changes to the source .json API files!
π Examplesβ
Server/Index.lua
Boat = VehicleWater.Inherit("Boat")
Boat.name = "Boat"
Boat.image = "assets://nanos-world/Thumbnails/SK_Motorboat.jpg"
Boat.category = "water"
function Boat:Constructor(location, rotation)
self.Super:Constructor(location or Vector(), rotation or Rotator(), "nanos-world::SK_Motorboat")
self:SetDoor(0, Vector(0, 0, 0), Vector(-120, 0, 55), Rotator(-10, 0, 0), 200, -100)
end
π Constructorsβ
Default Constructor
No description provided
local my_vehiclewater = VehicleWater(location, rotation, asset, collision_type?, gravity_enabled?)
Type | Name | Default | Description |
---|---|---|---|
Vector | location | Required parameter | No description provided |
Rotator | rotation | Required parameter | No description provided |
SkeletalMesh Reference | asset | Required parameter | No description provided |
CollisionType | collision_type | CollisionType.Auto | No description provided |
boolean | gravity_enabled | true | No description provided |
tip
Please take a look at our Default's Vehicle package with all built-in Vehicles already properly configured and ready to use.
πΏ Static Functionsβ
Inherited Entity Static Functions
This class doesn't have own static functions.
π¦ Functionsβ
Inherited Entity Functions
Inherited Actor Functions
Inherited Paintable Functions
Inherited Damageable Functions
Inherited Vehicle Functions
Returns | Name | Description | |
---|---|---|---|
SetEngineOffset | Sets the relative location of the Engine (where the Physics Thruster, sounds and effects are attached) | ||
SetThrustStrength | Sets the force of the Engine/Thruster |

SetEngineOffset
Sets the relative location of the Engine (where the Physics Thruster, sounds and effects are attached). Default is Vector(-200, 0, 0)
my_vehiclewater:SetEngineOffset(offset)
Type | Parameter | Default | Description |
---|---|---|---|
Vector | offset | Required parameter | No description provided |

SetThrustStrength
Sets the force of the Engine/Thruster. Default is 1000
my_vehiclewater:SetThrustStrength(force)
Type | Parameter | Default | Description |
---|---|---|---|
integer | force | Required parameter | No description provided |
π Eventsβ
Inherited Entity Events
Inherited Actor Events
Inherited Damageable Events
Inherited Vehicle Events
This class doesn't have own events.