storing actors(clones) in an array? how to?
Posted: Fri Jun 10, 2011 3:32 pm
is it possible to store pointers to newly created actors in an array for later usage??
i´m thinking of something like this:
However, how would i then access those actors / clones within script?
Is this somehow possible? What would be the correct way here? I assume i need sprintf somehow, right?
can anybody help or enlighten me? that would be MUCH appreciated. Thanks!!
i´m thinking of something like this:
- Code: Select all
Actor *newac;
newac = CreateActor("char1", "anim1", "(none)", "(none)", 0, 0, true);
actarray[column][row]=newac; // EDIT: how would i define a global "array of actor" ??
However, how would i then access those actors / clones within script?
- Code: Select all
Actor *actchange;
actchange = actarry[column][row];
actchange->animpos = blabla;
Is this somehow possible? What would be the correct way here? I assume i need sprintf somehow, right?
can anybody help or enlighten me? that would be MUCH appreciated. Thanks!!