@ bedges- you are steering him wrong. Steer clear of the thread if you aren't sure of the answer. :-X ( nice of u to try and help tho)
@ voodzia- Try what Sui suggested. If you don't want the unit on the map then delete him in his ini. -
alpha = group this; deletevehicle this
Now you have a group name to work with and the unit is gone. I do this all day long and it works just fine. Use any group name you like. If you want the pilot to board the helo later, it could take several minutes for him to recognize the helo. However, you can move him into it almost immediately after creating it with the moveindriver/moveingunner command. Give it at least a 1 second delay before doing so. If you don't want him flying it right away set the fuel to 0 on the helo.
_helo1 = "Mi24" createvehicle getpos logic1
~1
"SoldierEPilot" createunit [getpos logic1, alpha, "p1 = this", 1, "CAPTAIN"]
"SoldierEPilot" createunit [getpos logic1, alpha, "p2 = this", 1, "LIEUTENANT"]
~1
p1 moveindriver _helo1
p2 moveingunner _helo1
This code is correct and is taken from the createunit tutorial at the editors depot. I know...I wrote it.
Make sure you have the correct version of OFP that allows you to use the createunit/createvehicle commands (1.34).