Forum Jump :

Author Message

Posts: 89

Level: Member

Country: in
In-game name:

#198372 Posted at 2017-11-22 10:47        
Can this script run without oneachframe cos it is not available in a2co 1.62 version.
I have edited my script above but I m unable to test this script currently now.
null= [heli,h1] execVM "moveheli.sqf";

heli = _this select 0;
landingpad = _this select 1;
sleep 1;
heli setcombatmode "blue";
heli setbehaviour "safe";
heli move (getpos landingpad);
waituntil {unitready heli};
while {alive heli} do {
_vel = velocity heli;
_dir = direction heli;
heli setvelocity _vel;
_speed = 0.1;
heli setVelocity [ (_vel select 0) + (sin _dir* _speed), (_vel select 1) + (cos _dir* _speed), (_vel select 2)];
if (heli distance landingpad < 1) exitwith {dostop heli;};
sleep 0.5;

This post was edited by warbird (2017-11-26 10:55, 636 days ago)