This function draws a 3d line in the world, not on the screen, so you might be able to use it.


////////////////

function greenline_effect()
{
my.lifespan = 0.1;
my.streak = on;
my.red = 0;
my.green = 255;
my.blue = 0;
my.size = 4;
my.function = NULL;
}

function blueline_effect()
{
my.lifespan = 0.1;
my.streak = on;
my.red = 0;
my.green = 0;
my.blue = 255;
my.size = 4;
my.function = NULL;
}

function redline_effect()
{
my.lifespan = 4;
my.streak = on;
my.red = 255;
my.green = 0;
my.blue = 0;
my.size = 4;
my.function = NULL;
}

function yellowline_effect()
{
my.lifespan = 0.1;
my.streak = on;
my.red = 255;
my.green = 255;
my.blue = 0;
my.size = 4;
my.function = NULL;
}

function blackline_effect()
{
my.lifespan = 14;
my.streak = on;
my.red = 9;
my.green = 9;
my.blue = 9;
my.size = 4;
my.function = NULL;
}

function whiteline_effect()
{
my.lifespan = 0.1;
my.streak = on;
my.red = 255;
my.green = 255;
my.blue = 255;
my.size = 4;
my.function = NULL;
}

function orangeline_effect()
{
my.lifespan = 14;
my.streak = on;
my.red = 255;
my.green = 125;
my.blue = 0;
my.size = 4;
my.function = NULL;
}

function drawline_fun(&start,&end,color)//g1,b2,r3,y4,b5,w6,7o
{
vec_diff(temp,end,start);
if(color == 1){effect_local(greenline_effect,1,start,temp);}
if(color == 2){effect_local(blueline_effect,1,start,temp);}
if(color == 3){effect_local(redline_effect,1,start,temp);}
if(color == 4){effect_local(yellowline_effect,1,start,temp);}
if(color == 5){effect_local(blackline_effect,1,start,temp);}
if(color == 6){effect_local(whiteline_effect,1,start,temp);}
if(color == 7){effect_local(orangeline_effect,1,start,temp);}
}


Note: The effects for the different colors have different stats. I.E. I use the orange line for something that is only called once, so the line stays long enough to see. Based on how far from the screen, you might want to change the size (thickness) of the lines.

Also, I am not sure this will work with A5, but assuming you have particles, it should be work-able.

Send me an email about your rts project, I love to talk about rts projects with gamestudio. I have worked on making one for years. My current project is more of an rtt, like the total war stuff, but I played "Rise of Legends" and my rts gander is up so to speak. So very good.

thegamedesigner.

Last edited by thegamedesigner; 08/22/06 05:43.

My games - www.spyeart.com