pele93 10 Posted August 7, 2010 I'm using a script that has this bit of code in it _meters = helo distance player; waituntil { _meters < 1000}; The problem is it seems to be in-consistent... The helo will spawn at various distances from player depending on the conditions of which the helo is called(I'm working on a helo extraction/re-insertion script) and I use this to determine when to get the helo to land and it is really frustrating that sometimes it doesn't work, I have used the code hint format ["Distance from player is: %1", (_meters)]; to check the value (calling it in from a radio ) and sometimes it seems to have frozen on a value say 1549.86 even though it's getting closer and other times it works fine, I'm really confused by this and would appriciate your guys advice, as it seems to work fine if I restrict the player to call it in from one spot and have the helo spawn from the same spot, but this isn't possible as for my mission the player could be 1 of 3 or 4 places to call the extraction and I'd like to be able to use it to travel all around the map like in the A2 campaign..... Thanks for any advice you guys may have :) Share this post Link to post Share on other sites
buliwyf 2 Posted August 7, 2010 waituntil {helo distance player < 1000}; There is no loop in your script... so you have each time the same distance... :D Share this post Link to post Share on other sites
pele93 10 Posted August 7, 2010 (edited) waituntil {helo distance player < 1000}; There is no loop in your script... so you have each time the same distance... :D Thanks , I feel like an idiot now :p Spent too much time without taking a break What I've done so far now looks like this :) 41O3TCXmAJo Edited August 8, 2010 by Pele93 Share this post Link to post Share on other sites