Hi everybody,

thanks for your answers, but I think I have to explain why I wanted to get / set the entity's name.

I use it as a kind of primary key to store the pointers to my structs that are attached to some of my entities in a hashmap.

For sure it's just one of many things I can use as a primary key, for example the entity's ID, but I liked it because (for debugging reasons) it's more readable than an ID. For that reason I'm currently using entity.type + "_" + ID. That's unique and readable.

One more reason was that I use MadJacks Pathfinding DLL that crashed every time I attached it to an entity created by ent_create ... after debugging the code it turned out that he uses also the entity's name.

Currently I don't have any more issues on that, but as there is not really much information on the entity's name in the manual (or I didn't find it) and I asked myself how I could set that name or why it should be reserved for WED's used only ?!?

Best regards,
Pegamode