Jump to content

Recommended Posts

Ok guys, my missions screwed up...

I'm trying to get my chopper to land and stay on the ground. Now, before anyone says something along the lines of "USE THE FRAKKIN' SEARCH FUNCTION!" I will say that I have actually done some searching and I have found nothing to help me. I'm not sure how thourough (sorry about spelling) my search was but hey, I tried.

Anywho, here's my code in the waypoint:

extractionhelo land "LAND"; nul = [extractionhelo] execVM "engineon.sqf"; nul = execVM "marksmoke.sqf";

And in the waypoint after it lands:

{alive _x} count (units group player) == {_x in extractionhelo} count (units group player);

However, the chopper touches down (so far, so good)... and it imedietly takes off again without the squad inside.

So; wos goin' on?

Share this post


Link to post
Share on other sites

Try:

vehicle land "land"; ///the heli lands and turns off
vehicle land "get out"; ////the heli lands engines on and allows the group to get out, you need to use a waituntil command otherwise it will take off.

////group in vehicle
waituntil {{_x in vehicle} count units GroupName == count units GroupName};

///group out of vehicle
waituntil {{_x in vehicle} count units GroupName == 0};


Edited by cobra4v320

Share this post


Link to post
Share on other sites

Sorry mate, but that doesn't work.

waituntil {{_x in extractionhelo} count units player == count units player};

Just gives me the error Type Bool, Expected Nothing and getting rid of the waitUntil bit just makes it flag up Type Code, Expected Nothing. Really kinda anoying.

Anyone got anything else?

Share this post


Link to post
Share on other sites
waituntil {{_x in extractionhelo} count units group player == count units group player};

:)

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  

×