No offense meant, but using camera.sqs to have your heli on the ground where you placed it is kinda "overkill"
What you will need: The OFP-Editor, the setpos-command and the getpos-command.
Simply place your chopper EXACTLY where you want it to be.
Now, open the unit editing window and set "SPECIAL" to "FLYING".
This alone would make the chopper start in the air - with its engine running.
Obviously, you dont want that. You want the chopper ON THE GROUND, with its engine running.
In the INIT-FIELD, write the following two lines, seperated by a semi-colon (
.
this flyinheight -1 (this will make the chopper STAY on the ground with its engine running)
this setpos [getpos this select 0, getpos this select 1, 0]
(This line will change ONLY the height of the chopper)
What is behind this? Positions are arrays in OFP, consisting of 3 values (x,y,z) which basically represent map-coordinates and altitude.
OFP offers a way to obtain ONE of these values by SELECTing it. Arrays in OFP are starting with "Value 0", then "Value 1", "Value 2" and so on, so SELECT 0 will choose the FIRST value from the array.
What are we doing above?
Well, the line READS as following:
Set the position of this unit (this setpos) to the following array , which begins here ([) The first value of the array getpos this returns (getpos this select 0,), the second value of the array getpos this returns (getpos this select 1,), 0 meters (0). The array ends here. (]).
Cheers
PiLLe