Skip to main content

add_vehicle_xp

Adds experience points to the player's current vehicle.

Entry Information

PropertyValue
Entry IDadd_vehicle_xp
TypeAction
ColorCyan
Iconfa6-solid:star

Description

Adds a specified amount of XP to the current vehicle. When enough XP is accumulated, the vehicle will level up, triggering any onLevelUp actions defined in the vehicle definition.

Fields

FieldTypeDescription
amountDoubleAmount of XP to add

Usage Example

- entry: add_vehicle_xp
name: "Add Vehicle XP"
comment: "Adds 100 XP to the current vehicle"
group: "progression"
amount: 100.0