vehicle_definition
Defines a vehicle with its visual, stats, fuel, combat, and abilities configuration.
Entry Information
| Property | Value |
|---|---|
| Entry ID | vehicle_definition |
| Type | Manifest |
| Color | Blue |
| Icon | fa6-solid:car |
Description
A vehicle definition manifest entry that configures all aspects of a vehicle, including its visual appearance, movement stats, fuel system, combat settings, and activatable abilities. It also supports triggered actions for level-up, fuel depletion, and collision events.
Fields
| Field | Type | Description |
|---|---|---|
visual | VehicleVisual | Visual attached to vehicle wearer |
stats | VehicleStats | Movement stats |
fuel | VehicleFuelSettings | Fuel configuration |
combat | VehicleCombatSettings | Combat configuration |
abilities | List<VehicleAbility> | Activatable abilities |
onLevelUp | List<Ref<ActionEntry>> | Actions on level up |
onFuelEmpty | List<Ref<ActionEntry>> | Actions when fuel empty |
onCollision | List<Ref<ActionEntry>> | Actions on collision |
Usage Example
- entry: vehicle_definition
name: "Sports Car"
comment: "A fast sports car definition"
group: "definitions"
visual:
model: "sports_car"
customModelData: 10001
stats:
maxSpeed: 2.0
acceleration: 0.1
handling: 0.8
fuel:
capacity: 100
consumption: 0.5
combat:
attackDamage: 5.0
defense: 2.0
abilities:
- id: "nitro_boost"
name: "Nitro Boost"
onLevelUp:
- "notify_level_up"
onFuelEmpty:
- "notify_fuel_empty"
onCollision:
- "apply_collision_damage"