Lesson 6: Creating your first airplane

Making the landinggear work


Lets fix the landing gear first. If you tested the model ingame, you will notice that the Raise/Lower landing gear at the action menu works. Trying to land the plane without gear down, you will crash. So thats not the problem, thats all defined in the config. What we need to do is make the animation for our gear work so that the gear in the plane retracts and lowers when the user uses the aciton menu.

How do we do that, you say? If you have followed my tuts you know it by now: we set up a bunch of wacky named (in czech) selections and let the ofp engine do the rest. We have a tricycle landinggear (one nose gear and two at the rear), just like the ofp A10 got. So ofp will have no problem with this.

Ok, now ofp know what the gears are and will use these selection when doing the rotiation. But we still have work to do, we need to define an axis for each wheel, so that ofp can rotate each wheel around. Lets go to memory lod for that:

Ok, so now OFP can do the gear animation with no problems. One thing remains though:

Guess what, if you have checked that all selections are named right and you have followed this page to the point, the gear should work now. So compile and lets test the gear ingame. If some of the gears dont work, its probably because a bad named selection. Make sure you got no typos on the plane. And should some animation work the wrong way, try rotating the axis 180 degrees in Memory LOD.

Note that we cant seem to control the dirrection the gear retracts. They always retrach forward, like the A10 does, and sometimes thats not what we want (e.i. most ww2 fighter retracted their gear inwards). So if we want to have a different gear animation, we can (from v1.85+ at least). But this is out of scope for this simple tutorial. Try OFPEC for a tutorial about that.

ok, now lets see if we can do anything about the static rotors. Lets make them spin!

Back__Home__Next