Arma 3 Scripting

setVehicleArmor

  • Local argument
  • Global effect
  • Arma 3 v0.50
  • First in Operation Flashpoint: Elite v1.00

Command · Markdown · JSON · original wiki page

Description

Sets the armor (or health for men) state of the vehicle (a value from 0 to 1).

Works like setDamage, but the other way around: 1 is full health - see Example 2.

Syntax

vehicleName setVehicleArmor value

Parameters:

Returns: Nothing

Examples

Example 1

player setVehicleArmor 0.5;

Example 2

player setVehicleArmor 1;
// is the same as
player setDamage 0;

player setVehicleArmor 0;
// is the same as
player setDamage 0.97;

See also

setDamage