## XIDCine
Class ApacheTopRotor

source: C:\XIII\XIDCine\Classes\ApacheTopRotor.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Decoration
             |
             +--XIDCine.HelicoTopRotor
                |
                +--XIDCine.ApacheTopRotor

Direct Known Subclasses:None

class ApacheTopRotor
extends XIDCine.HelicoTopRotor

    //-----------------------------------------------------------
    //
    //-----------------------------------------------------------

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class ApacheTopRotor extends HelicoTopRotor;
    00005	/*
    00006	event tick(float dT)
    00007	{
    00008	    Local rotator R;
    00009
    00010	    R.Yaw = Level.TimeSeconds*250000;
    00011	//	R.Roll = 32768;
    00012	    SetRelativeRotation(R);
    00013	}*/
    00014	event tick(float dT)
    00015	{
    00016	    Local rotator R;
    00017
    00018		if (bChanging)
    00019		{
    00020			if (bTurning)
    00021			{
    00022				RotationSpeed+=0.25*250000*dt;
    00023				if (RotationSpeed>=250000)
    00024				{
    00025					RotationSpeed=250000;
    00026					bChanging=false;
    00027				}
    00028			}
    00029			else
    00030			{
    00031				RotationSpeed-=0.25*250000*dt;
    00032				if (RotationSpeed<=0)
    00033				{
    00034					RotationSpeed=0;
    00035					bChanging=false;
    00036				}
    00037			}
    00038		}
    00039		R=RelativeRotation;
    00040		Angle += RotationSpeed*dT;
    00041		R.Yaw = Angle;
    00042		R.Roll = 0;
    00043		R.Pitch = 0;
    00044	    SetRelativeRotation( R );
    00045	}
    00046
    00047
    00048
    00049	defaultproperties
    00050	{
    00051	     bCollideActors=True
    00052	     bBlockActors=True
    00053	     bBlockPlayers=True
    00054	     bBlockZeroExtentTraces=True
    00055	     bBlockNonZeroExtentTraces=True
    00056	     StaticMesh=StaticMesh'Meshes_Vehicules.apacheBossTop'
    00057	}

End Source Code