GetNPCHealth

From Onset Developer Wiki
Revision as of 19:53, 13 November 2019 by Kuzkay (talk | contribs)
GetNPCHealth

Type: Function
Context: Server
Introduced: v1.0

Description

__EDIT_ME__

Syntax

GetNPCHealth(npc)

Parameters

  • npc
    NPC you want to get health of

Return Value

  • NPC Health

Example

function checkHealth(player, npc)
   AddPlayerChat(player, 'NPC has: ' .. GetNPCHealth(npc) .. ' health')
end
AddCommand('npchealth', checkHealth)


See also

__EDIT_ME__