Athena.vehicle.damage ​
Functions ​
apply ​
Usage
Athena.vehicle.damage.apply(vehicle
, damage
): void
Apply vehicle damage to a vehicle.
Parameters ​
Name | Type | Description |
---|---|---|
vehicle | Vehicle | An alt:V Vehicle Entity |
damage | VehicleDamage |
Returns ​
void
Defined in ​
get ​
Usage
Athena.vehicle.damage.get(vehicle
): player
| undefined
Returns vehicle damage for individual parts.
Parameters ​
Name | Type | Description |
---|---|---|
vehicle | Vehicle | An alt:V Vehicle Entity |
Returns ​
player
| undefined
Defined in ​
repair ​
Usage
Athena.vehicle.damage.repair(vehicle
): Promise
<void
>
Used to repair all vehicle damage, and save changes to the Database.
Parameters ​
Name | Type | Description |
---|---|---|
vehicle | Vehicle | An alt:V Vehicle Entity |
Returns ​
Promise
<void
>