Jump to content
hectrol

waituntil 2 meters from the ground

Recommended Posts

Please how would this code be correct? Something like that but with the correct condition or statement:

 

waituntil {HELI1 (2 meters from the ground) };


Thanks Masters

Share this post


Link to post
Share on other sites

Holy smokes theres still people here...this is like coming to an old plane crash landing and seeing movement among the debris. What happened to this forum - its literally spam bombed everytime I take a peek

  • Haha 1

Share this post


Link to post
Share on other sites
14 hours ago, pierremgi said:

waitUntil {getPos heli1 #2 >2};


@pierremgi I'm sorry but it doesn't work. It doesn't pause.

Share this post


Link to post
Share on other sites
2 hours ago, hectrol said:


@pierremgi I'm sorry but it doesn't work. It doesn't pause.

 

Show all of your code and describe what you want to achieve.

Share this post


Link to post
Share on other sites

It is part of a script with dialogue and events in which a Chinook is seriously damaged and makes a forced landing. I just wanted to pause until it hits the ground. Instead of by time.

Share this post


Link to post
Share on other sites
11 minutes ago, hectrol said:

It is part of a script with dialogue and events in which a Chinook is seriously damaged and makes a forced landing. I just wanted to pause until it hits the ground. Instead of by time.

Without your code, we can't help you... you probably wrote this pause in an unscheduled scope.

Share this post


Link to post
Share on other sites
On 12/29/2023 at 12:40 AM, pierremgi said:

waitUntil {getPos heli1 #2 >2};

 

On 12/29/2023 at 2:55 PM, hectrol said:

@pierremgi I'm sorry but it doesn't work. It doesn't pause.

 

Since you are waiting for the helo to get within 2m of the ground, approaching from above that envelope, @pierremgi's code will work if you flip the greater-than operator to less-than. Currently, the condition is met instantly since the helo is already above the 2m envelope.

 

And as he mentioned, scope might be another issue. Show your code.

  • Like 2

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

×