Hi, as a dedicated newbie in editing / scripting I always try it on my own first and then use the search function
But even after repeated and extensive searches I could not find the right topic for this...
Just jump over the whole story, maybe it's not so important... goto "What I need". Just the red colored line is of importance, as far as I see the case.
What I have done so far:
I use the script land.sqs to make the chopper land. The script contains the simple line:
"helimission land "land";
And this works well, the chopper moves down on the invisible helipad. All right so far.
But now the problems begin.
The group to be extracted is 2 soldiers, the player and an AI. Problem 1:
When I command the AI "2, get in that chopper!" while the chopper is still in the air
the following will happen:
The chopper will touch the ground and lifts up again immediately to aprox. 20 m height, where it will stay, no matter what I do (excepting, I shot the pilot out
To prevent this, I read in the forum that you can setfuel 0, when the helo touches the ground. Just to prevent the chopper to fly away without having loaded the troops.Problem 2:
I set the fuel of the chopper = 0 when it has height < 2. But in this case, when the chopper hits the ground, the pilots will jump out the machine, which is pretty unrealistic... No pilot in an extraction mission will get out the chopper to see whats happening around What I need:
I think, an easy way to solve this is to beam the pilots in the helo again, when they leave it. I just need the right syntax to check if a unit in not
in a vehicle. And this one I could not find in the forums
Only saw "check if the unit is in vehicle"... I tried it with the following script, but got an error message:
#LOOP?!pilot1helimission in helimission : goto "CONTINUE"
pilot1helimission moveindriver helimission;
Can you show me the mistake?