yes however you would need to use this instruction:
Quote:
ent_for_name (STRING* name);
Returns a pointer to the entity with the given WED name. Names can be assigned to entities through [Properties] in WED. This way, entities placed in a level can be accessed in functions even if they have no action themselves. Only the first 20 characters of the entity name are evaluated.
So what you can do:
Code:
entity* myPointer;
myPointer = ent_for_name('myEntityName');
Oh I see you want to connect a string plus a number:
Code:
string ent_name;
string temp_str;
entity* myPointer;
...
str_for_num(temp_str,1);
str_cpy(ent_name,"someName");
str_cat(ent_name,temp_str);
myPointer = ent_for_name(ent_name);