---
name: "BIS_fnc_setHitPointDamage"
type: function
status: ok
groups: ["Object Manipulation"]
arma3_since: "1.68"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_setHitPointDamage
revid: 329658
updated: 2022-08-01T00:59:26Z
---

# BIS_fnc_setHitPointDamage

*Function · Object Manipulation · Arma 3 v1.68*

## Description

Sets damage to HitPoint with dependency or not.

## Syntax

```sqf
[object, hitPoint, damage, useDependency] call BIS_fnc_setHitPointDamage
```

**Parameters:**

- `object`: [Object](../topics/Object.md) - entity to which damage applies
- `hitPoint`: [String](../topics/String.md) - hitPoint to which damage applies
- `damage`:  [Number](../topics/Number.md) - amount of damage to apply
- `useDependency`: [Boolean](../topics/Boolean.md) - (Optional, default [true](../commands/true.md))
  - [true](../commands/true.md) - distribute damage to dependent HitPoints as well
  - [false](../commands/false.md) - apply damage to given HitPoint only

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

## Examples

### Example 1

```sqf
[player, "HitFace", 0.9] call BIS_fnc_setHitPointDamage;
```

## See also

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

<sub>Source: [BI Community Wiki — BIS fnc setHitPointDamage](https://community.bistudio.com/wiki/BIS_fnc_setHitPointDamage) (revision 329658).</sub>
