'_x' is just an name for indice 0, '_y' for 1 and '_z' for 2. Like in PHP. I used the underscore, because x,y,z are keywords - an old usage from Macromedia Director laugh

Same with array ids - I wanted to ignore epos[0][0], eops[0][1] and epos[0][2] - just keeping them empty laugh

Now I have understood, what i+j or j+k means grin

But my Code still doesn`t work:
Code:
...
epos[0][0] = -50;
epos[0][1] = 800;
epos[0][2] = 300;
epos[1][0] = 50;
...
function start_bee_wave1() 
{
...
c_wert_x = (epos[my.ENEMID-1][0] - my.x) / 10;
c_wert_y = (epos[my.ENEMID-1][1] - my.y) / 10;
c_wert_z = (epos[my.ENEMID-1][2] - my.z) / 10;
c_move(me, vector(0, 0, 0), vector(c_wert_x * time_step, c_wert_y * time_step, c_wert_z * time_step), IGNORE_MODELS);
...



All enemies move to (0,0,0). I am sure, that my.ENEMID is set, because I use it before and don`t unset it. Even when I remove "-1" (should point to first array element, if my.ENEMID == 0) enemies move to (0,0,0). So there must be no values. epos-Array is defined global.

Ditje

Last edited by Ditje; 07/25/10 16:30.