???
All he wants is to switch from flying to driving. Not hard to understand, mate.
@OP: Just change the datablock when they press a certain key. Unfortunately the space bar brake is in the engine code, if I recall. You'll need to choose another key.
It is brake, but you can still use it. I used it in an engine modifier script I made a while back.
package PlaneCar {
function CarPlane::onTrigger(%this,%obj,%triggerNum,%val) {if(%val && %triggerNum == 2) { %this.setDatablock(PlaneCar); }}
function PlaneCar::onTrigger(%this,%obj,%triggerNum,%val) {if(%val && %triggerNum == 2) { %this.setDatablock(PlaneCar); }}
};
activatePackage(PlaneCar);
I'm assuming that you can swap datablocks between WheeledVehicle and FlyingVehicle. If you can't, it's a lot more complicated and just about not worth it. You'd have to delete the car, create the plane exactly where the car was, mount the player into the plane, and give the plane the exact speed the car was going. This doesn't seem so bad on the ground, but in the air if you're in the middle of turning and you hit space your plane will spawn angled, but the turn will start over again and cause some wobbles and possible spin outs. Not to mention, space is still brake reguardless of the vehicle type. If you don't just tap space you'll come to a screeching stop if you're on the ground.
EDIT:
He means a harrier. Like the jet that can hover.
That's not at all what he described, how did you even come to that conclusion?