I don't have anywhere to host this so is it ok to post here?

Ok so now you're wondering: "how can i get the doors on my Uh-1 to slide open?" or "how can I open the bomb bay doors on my b52 bomber?", to tell you the truth its not that hard it's just a game of selection names, memory points and brains.

PART 1

First of all for examples sake I've created this little model of a windmill thingy. Now I want to make the rotor part rotate whenever I comeup to it and in my menu press "Rotate windmill". See picture here.

now we need to name that part so the game recognises it. Ok we have to name it something that we will remember:

Select the object that will be animated and right-click in the selections list, choose NEW. Type windmill as the selection name.

Now we move to the Memory LOD where we have to create two points that will define the axis' around which the object will rotate. Create the points by pressing Insert and place them as shown here.

Select both and make a new selection called osa windmill.
Now everything is set and everything that is left is to add the following code into the CfgVehicles class in the config.cpp.

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">
class All {};
class Static: All {};
class Building: Static {};
class NonStrategic: Building {};
class House: NonStrategic {};
class windmill: House
{
*** animated=1;
*** model="path to model.p3d";
*** displayName="Windmill";
*** class Animations
*** {
*** *** ***class animWindmill
*** {
*** *** *** angle0=0
*** *** *** angle1="2 **** ***3.1415926"; // 2 * Pi
*** *** *** multiplyer=20;
*** *** *** type="rotation";
*** *** *** animPeriod=1;
*** *** *** selection="windmill"; // this is the selection we named in resolution LOD
*** *** *** axis="osa windmill"; //the points selection acting as axis
*** };
*** };
[/QUOTE]<span id='postcolor'>

Now you want to add that function to your menu everytime you walk up to the windmill. Just after that add this code:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">
class UserAction
{
*** class rotateWindmill
*** {
*** *** *** displayName="Rotate windmill";
*** *** *** positon="osa windmill";
*** *** *** radius=10; //how far from the object u gotta be to be able to activate it.
*** *** *** condition="this *** *** animationPhase ""windmill"" < 0.5";
*** *** *** statement="this animate [""animWindmill"", 1]";
*** ***};
};
[/QUOTE]<span id='postcolor'>

save, Suff and play
So you see its really not that hard, now I hope I dont have to tell you how to use that for more complex stuff I&#39;m sure you can figure that out...

Have a nice time plain with it.