---
name: "setVehicleArmor"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/setVehicleArmor
revid: 369388
updated: 2024-09-03T18:43:16Z
---

# setVehicleArmor

*Command · Object Manipulation · Arma 3 v0.50 · introduced in Operation Flashpoint: Elite v1.00*

Locality: arguments **local** · effect **global**

## Description

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

Works like [setDamage](../commands/setDamage.md), but the other way around: 1 is full health - see [#Example 2](../commands/setVehicleArmor.md#example-2).

## Syntax

```sqf
vehicleName setVehicleArmor value
```

**Parameters:**

- `vehicleName`: [Object](../topics/Object.md)
- `value`: [Number](../topics/Number.md) - in range 0..1

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
player setVehicleArmor 0.5;
```

### Example 2

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

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

## See also

[setDamage](../commands/setDamage.md)

<sub>Source: [BI Community Wiki — setVehicleArmor](https://community.bistudio.com/wiki/setVehicleArmor) (revision 369388).</sub>
