Pular para o conteúdo principal

vehicle_definition

Defines a vehicle with its visual, stats, fuel, combat, and abilities configuration.

Entry Information

PropertyValue
Entry IDvehicle_definition
TypeManifest
ColorBlue
Iconfa6-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

FieldTypeDescription
visualVehicleVisualVisual attached to vehicle wearer
statsVehicleStatsMovement stats
fuelVehicleFuelSettingsFuel configuration
combatVehicleCombatSettingsCombat configuration
abilitiesList<VehicleAbility>Activatable abilities
onLevelUpList<Ref<ActionEntry>>Actions on level up
onFuelEmptyList<Ref<ActionEntry>>Actions when fuel empty
onCollisionList<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"