bool SetFloat(string name, float value)/ETHEntity

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

Sample:

entity.SetFloat("speed", 10.5f);
print("Our beloved character walks at " + entity.GetFloat("speed") + " pixels per second");

Output:

Our beloved character walks at 10.5 pixels per second