GetVehicleDamage

From Onset Developer Wiki
Revision as of 07:45, 7 October 2019 by BlueMountains (talk | contribs)
GetVehicleDamage

Type: Function
Context: Server
Introduced: v1.0

Description

Returns the vehicle damage for a specific part/region of the vehicle.

Syntax

GetVehicleDamage(vehicle, damageIndex)

Parameters

  • vehicle
    The vehicle identifier.
  • damageIndex
    Damage part of the vehicle between 1-8, depending on the vehicle.

Return Value

  • Returns a value between 0.0 (no damage) and 1.0 (full damage).

Example

__EDIT_ME__

See also

__EDIT_ME__