The entity’s current health||doc136131

September 20, 2022

Format

 Entity.curHp 
  • The class to which the attribute belongs:Entity

Description

The current health value of the entity. When it is 0, the entity enters the empty blood state. In the empty state, the entity object is considered to be in a dying state and cannot move.


Value Returned

type Description
float current blood volume


Code Samples

Output the current health value of the entity object

local curHp = entity.curHp
print(curHp)