Jump to content
Sign in to follow this  
thedubl

im stuck... getPosASL

Recommended Posts

Why does this not work?  My _plane object will be well over 50m this does not return true.

round ((getPosASL _plane) select 2) >= 50;

Actual waituntil... when this runs I am hinting the height. I know it is higher then 50. I think I am losing it here. :wacko:

waitUntil { round ((getPosASL _plane) select 2) >= 50; if(_debug)then{hint format[" %1", round((getPosASL player) select 2)];}; sleep 2; };

I must not be seeing something.

 

dub

Share this post


Link to post
Share on other sites

The condition needs to be at the end. It's just like how you return values with functions.

Share this post


Link to post
Share on other sites

The condition needs to be at the end. It's just like how you return values with functions.

:sulkoff: Time to call it a day and drink a beer. Thanks theend3r.

 

dub

Share this post


Link to post
Share on other sites

Try:

waitUntil {sleep 2; ((getPosASL _plane) select 2) > 50};

Share this post


Link to post
Share on other sites

 

Try:

waitUntil {sleep 2; ((getPosASL _plane) select 2) > 50};

Thanks, Yep, I got it. theend3r was quick to point it out.

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  

×