bool SetInt(string name, int value)/ETHEntity

Sets a custom int variable to the entity. This method will overwrite both type and value if another data with the same name exists.

Sample:

entity.SetInt("hp", 2400);

print("Character health is: " + entity.GetInt("hp"));

Output:

Character health is: 2400