# GetEntityInformation
TIP
getEntityInformation(<entity_ID>)
- Returns information of an entity as an array with the following elements:
["nametag"]
Entity's name as string["maxhealth"]
Entity's maximum health as int["health"]
Entity's health as int or float["size"]
Entity's size as int or float["flags"]
Entity's flags as array- Note: The entity must be in a loaded chunk in order to get its information, the function will return NULL if the entity isn't loaded or doesn't exist
# Parameters
<entity_ID>
The entity ID as int
# Example
1: $id$ = spawnEntity("Skeleton", $world$, $x$, $y$, $z$)
2: $info$ = getEntityInformation($id$)
3: sendMessage($player$, "The entity's health is: " + $info$['health'])