I've been trying to find this out for a few hours.
I want to use the script from this thread. http://forums.bistudio.com/showthread.php?85769-Spawning-empty-Vehicle-on-addAction
But have the aircraft spawn at 18 height. The height required for the Nimitz Class Carrier addon.
I have the script working, but I cannot find out to make the vehicles spawned by this script to spawn at 18 height.
I used this in the init lines of some other units and it worked great.
this setPosASL [position this select 0, position this select 1, 18]
Here is my Init for the script
WaitUntil{not isNull player};
_air = player addAction ["Spawn: A10","Spawn_Vec.sqf",["A10"],5,false,true,"","player in list SpawnVehicleArea"];
_air4 = player addAction ["Spawn: F-14 CAP","Spawn_Vec.sqf",["IkaR_F14_AIM_54"],5,false,true,"","player in list SpawnVehicleArea"];
_air5 = player addAction ["Spawn: F-18","Spawn_Vec.sqf",["vfa_14_202"],5,false,true,"","player in list SpawnVehicleArea"];
And here is the Spawn_Vec.sqf
_type = (_this select 3) select 0;
_vec = _type createVehicle (getMarkerPos "Spawn_Aircraft");
_vec setDir 150;
AllVecsSpawned = AllVecsSpawned + [_vec];
publicVariable "AllVecsSpawned";