float GetFloat(string name)/ETHEntity

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

entity.SetFloat("speed", 10.0f);
if (entity.GetFloat("speed") == 10.0f)
    print("It works!");