Skip to content
On this page

Athena.vehicle.damage

Functions

apply

Usage

Athena.vehicle.damage.apply(vehicle, damage): void

Apply vehicle damage to a vehicle.

Parameters

NameTypeDescription
vehicleVehicleAn alt:V Vehicle Entity
damageVehicleDamage

Returns

void

Defined in

server/vehicle/damage.ts:147


get

Usage

Athena.vehicle.damage.get(vehicle): player | undefined

Returns vehicle damage for individual parts.

Parameters

NameTypeDescription
vehicleVehicleAn alt:V Vehicle Entity

Returns

player | undefined

Defined in

server/vehicle/damage.ts:66


repair

Usage

Athena.vehicle.damage.repair(vehicle): Promise<void>

Used to repair all vehicle damage, and save changes to the Database.

Parameters

NameTypeDescription
vehicleVehicleAn alt:V Vehicle Entity

Returns

Promise<void>

Defined in

server/vehicle/damage.ts:187

Created by Stuyk | Est. 2020