Try this:
Code:
action follower_action()
{
        ENTITY* ent = ptr_for_handle(my.skill10);
	while(1)
	{
		vec_set(my.x,ent.x);	
		wait(1);
	}
}

function add_follower(ENTITY* ent)
{
	ENTITY* follower = ent_create(... ,follower_action);
        if(ent != NULL)follower.skill10 = handle(ent);
}


EDIT:
I never heard about that...

Last edited by Ralph; 04/14/09 21:07.