SetNPCHealth

From Onset Developer Wiki
Revision as of 15:20, 19 November 2019 by 28days (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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