Retrieves the value of a custom int variable from the entity. If there is no int variable with that name it'll return 0.
0
entity.SetInt("hp", 100); if (entity.GetInt("hp") == 100) print("It works!");