Download the script
Yesterday I received a request to make a function that makes a moving target. I was busy developing my mission, but being the nice guy that I am, I took 10 mins out of my routine to help him out. I then read some posts on the forums a few minutes ago to see that other people wanted to find out how to make a target move. So I present to you, a function that makes a target move.
It's simple, but it should help those in need :)
To use this, execVM the sqf, then add this line replacing "targetObject" with the target's name.
[targetObject,((direction targetObject) + 90),10,0.1,3] spawn fn_MovingTarget; //target,direction,distance to move, speed, pause time