bool SetString(string name, string value)/ETHEntity

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

Sample:

entity.SetString("characterName", "Boris");
print("Character name is: " + entity.GetString("characterName"));

Output:

Character name is: Boris