Main API implemented by Fortnite vehicles.
Verse using statement |
using { /Fortnite.com/Vehicles } |
Exposed Interfaces
This interface exposes the following interfaces:
| Name | Description |
|---|---|
positional |
Implemented by objects to allow reading position information. |
healthful |
Implemented by Fortnite objects that have health state and can be eliminated. |
damageable |
Implemented by Fortnite objects that can be damaged. |
game_action_causer |
Implemented by Fortnite objects that can be passed through game action events, such as damage and heal. For example: player, vehicle, or weapon. Event Listeners often use |
Members
This interface has both data members and functions.
Data
| Data Member Name | Type | Description |
|---|---|---|
Speed |
?float |
The current speed of the vehicle in m/s. |
BoostRemaining |
??float |
The boost state of the vehicle. If the vehicle uses boost, this value will be between 0.0 and |
BoostCapacity |
??float |
The maximum boost capacity of the vehicle. If the vehicle uses boost, this value will be between 1.0 and Inf. Otherwise, this value will be false. |
Functions
| Function Name | Description |
|---|---|
IsOnGround |
Succeeds if this |
IsInAir |
Succeeds if this |
IsInWater |
Succeeds if this |
GetPassengers |
Returns an array of every |
GetOccupants |
Returns an array with all |
GetDrivers |
Returns an array with all the current drivers of the vehicle, which is usually a single agent. |
GetFuelRemaining |
Returns the fuel state of the vehicle. If the vehicle uses fuel, this value will be between 0.0 and |
GetFuelCapacity |
Returns the maximum fuel capacity of the vehicle. If the vehicle uses fuel, this value will be between 1.0 and Inf. Otherwise, this value will be -1.0. |
TeleportTo |
Teleports the |
RemoveAgent |
Removes the specified agent from the vehicle. Fails if the agent is not in the vehicle. |
RemoveAll |
Removes all occupying agents from the vehicle. |
AddAgent |
Attempts to add the agent to the |
GetSeats |
Returns an array of all |