Jump to content
Sign in to follow this  
logan83

Setvelocity Broken?

Recommended Posts

hi there guts, im trying to maintain a chopper in the ground after unload some units with Heli1 setvelocity [0,0,0], and the heli, veeeeeery slowly add  throttle up and gets more and more height whats wrong?

 

Share this post


Link to post
Share on other sites

Ohm Sorry! i Missunderstand... i Use Setvelocity 0  :wacko:  now i try Heli1 flyInHeight 0; some times works some times nope... but find a dirty solution:

while {isEngineOn Heli1 && count crew heli1 <=5 } do{
	heli1 setVelocity [0,0,-0.3];
};

Not the best, but works, thanks to both...

Share this post


Link to post
Share on other sites

Change the while to a waitUntil.(And of course alter the condition accordingly)

Waituntil only runs on each frame, while runs as the cpu allows.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×