How can i call all entities(about 50), and reset it all from another function? They were created in Wed and dont"t have entity pointer in Script, but have an action function. Something of the kind: Code:
define blocked, skill1; numberOfEntities = 50;
function f1{ while (i<= numberOfEntities){ ["entityName"+i].blocked = 0; i +=1; } }
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: