SetNPCHealth

From Onset Developer Wiki
SetNPCHealth

Type: Function
Context: Server
Introduced: v1.0

Description

Set the NPC health.

Syntax

SetNPCHealth(npc, health)

Parameters

  • npc
    The NPC identifier.
  • health
    The health in floating point value.

Return Value

  • This function returns nothing.

Example

SetNPCHealth(npcid, 100.0)

See also