You definitely need it for ArmA, not Arma 2?
With ArmA it may be a little bit more complex to accomplish, but it is still possible. A
setVelocity and
setDir loop is the easiest but perhaps not the most ideal, mainly because it can have a negative performance impact due to the never-ending loop. To accomplish this, you would need something like this script:
/*
_this select 0 - C130 name
_this select 1 - direction
_this select 2 - altitude
*/
_c130 = _this select 0;
_dir = _this select 1;
_alt = _this select 2;
if (!(isNull driver _c130)) then {
driver _c130 disableAI "MOVE";
};
while {true} do {
_c130 setDir _dir;
_c130 setPos [(getPos this select 0), (getPos this select 1), _alt];
sleep 0.05;
};