Hmm... thanks, I think I got the 'trick'.
PHP Code:
new iOrigin[3]
new Float:fA[3]
new Float:fB[3]
entity_get_vector(id, EV_VEC_origin, fA)
get_user_origin(id, iOrigin, 3)
IVecFVec(iOrigin, fB)
new iNum = floatround(get_distance_f(fA, fB) / 50.0, floatround_floor)
xs_vec_sub(fB, fA, fB)
xs_vec_normalize(fB, fB)
xs_vec_mul_scalar(fB, 50.0, fB)
for(new i = 0 ; i < iNum; i++)
{
xs_vec_add(fA, fB, fA)
/* sprite @ fA */
}
And by mistake I made a nice railgun effect
[IMG]http://img295.**************/img295/8889/dedust20057.th.jpg[/IMG]
It fades out really nicely, used TE_GLOWSPRITE and ledglow.spr
__________________