entity array

pn18

Newbie
Joined
May 28, 2007
Messages
6
Reaction score
0
hi, is it possible to create an "entity array"?

eg.: there's an entity_maker and it spawns every second an entity (eg. physbox) and these entities are called physboxX. is it possible to declare every new entity with a consecutive number (physbox1, physbox2, physbox3, physbox4, ...)?

thanks in advance.
 
I would use a point_template. There is a flag for preserving entity names which you do NOT want checked. It will give every entity spawned a unique target name.
 
how will these be named then? Does that say anywhere?
 
I can't remember exactly, but it is something like this. Let's say the inital target name is "object." It will name the next "object%001" and then "object%002" and so on. You don't really need to worry about knowing the name, if you have another entity in the template that refers to it (for example, a logic_branch,) as long as every entity spawned is being spawn with a unique name, they will still work accordingly as separate groups.

Sorry if that made no sense, it's difficult to explain.
 
Back
Top