if you're looking to just simply move an object along a plath its quite straight forward. Try this:

Code:
#define MOVEMENT_SPEED skill1
var dist = 0; // entity path
var vLastPos[3];
var vDir[3];

action the_entity ()
{
path_set(my, "the_path");
while(1)
{
path_spline(me,my.x,dist);
dist += 5*time_step;
vec_diff(vDir,my.x,vLastPos);
vec_to_angle(my.pan,vDir);
vec_set(vLastPos,my.x);
ent_animate(my, "walk", my.MOVEMENT_SPEED, ANM_CYCLE);
my.MOVEMENT_SPEED += 30 * time_step;
wait(1);
}
}



you can either assign this action to the entity in wed, or turn it into a function and assign it to an entity that you've created in your script. If you have a action already for the entity, then just put this in your current action.



Last edited by oldschoolj; 02/06/08 16:30.

you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe. __________________________________ yours truly