---
title: "4 篇文件帶有標籤「damage」 | open.mp"
canonical: https://omp.itsneufox.com/zh-TW/docs/tags/damage
language: zh-TW
---

# 4 篇文件帶有標籤「damage」

[檢視所有標籤](https://omp.itsneufox.com/zh-TW/docs/tags)

[

## NPC\_IsInvulnerable

](https://omp.itsneufox.com/zh-TW/docs/scripting/functions/NPC_IsInvulnerable)

Checks if an NPC is invulnerable to damage.

[

## NPC\_SetInvulnerable

](https://omp.itsneufox.com/zh-TW/docs/scripting/functions/NPC_SetInvulnerable)

Sets whether an NPC is invulnerable to damage.

[

## OnNPCGiveDamage

](https://omp.itsneufox.com/zh-TW/docs/scripting/callbacks/OnNPCGiveDamage)

This callback is called when an NPC gives damage to a player.

[

## OnNPCTakeDamage

](https://omp.itsneufox.com/zh-TW/docs/scripting/callbacks/OnNPCTakeDamage)

This callback is called when an NPC takes damage.
