int GetInt(string name)/ETHEntity

Retrieves the value of a custom int variable from the entity. If there is no int variable with that name it'll return 0.

entity.SetInt("hp", 100);
if (entity.GetInt("hp") == 100)
    print("It works!");