Hey guys, I am trying to utilize a for loop to draw a line of particles. In the end I am trying to achieve something that works like draw_line3d. I wouldnt be here asking this question if Conitec would just include the formulas for their draw functions in the manual tongue Anyway, I am trying to do something similar to this;

VECTOR temp;
distance = vec_dist(pos_a.x,pos_b.x);
for(i=0; i<distance; i++)
{
effect(pulse_ef_a_base,1,vector(temp.x+i, temp.y, temp.z),nullvector);
}

As you can already guess this wont work. I am not the best at math so I was wondering if someone could help me figure out how to get this to work. To reiterate, I am trying to draw a line of particles from pointA to pointB using a 'for' loop. Thanks to whoever can help me laugh