SetNPCHealth

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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