I fought through getting this working on my ALiVE insurgency map, thought I would throw my efforts back where google can index them for others to find and have an easier time. A lot of the concepts needed to make this work are spread throughout many disparate posts from long-inactive editors, this should help consolidate some of that and help new mission editors.
Any improvements or additional fixes, I'd love to hear as much as anyone else. :)
Important code:
Code added to VVS fn_spawnVehicle.sqf to help out elevation issues:
_position set [2,0.5]; // sets spawn height of VVS
VVS initialization:
this allowdamage false; this addAction["Virtual Vehicle Spawner",VVS_fnc_openVVS,
this addAction["Virtual Vehicle Spawner",VVS_fnc_openVVS,["VVS_all_1","All"]];
["VVS_all_1","All"]];
Elevation function (top deck setting)
this setPos [getPos this select 0, getPos this select 1, 17]
Automatic vehicle teleport zone function (this one was hard to find), works for players too:
{_x setPosATL getPosATL LHD_out} forEach thisList
Present of this date issues:
- LHD flight deck VVS spawn cannot remove vehicles, as they are being teleported there, so they will clip if not cleaned up or managed.
- LHD deck is fine for choppers to roll around, even with advanced model on, but aircraft clip into seams, not usable for fixed wing as they clip, get hung and take damage
- Walls and gates/fences are deadly, don't walk into them.
- Keep moving on elevators to avoid clipping.
- Some objects don't like staying on the LHD regardless (Portable Helipad lights for eg.)
Demo Mission and Video guide in next post. (since this is my 1st post)