Home   Help Search Login Register  

Author Topic: How to make open doors?  (Read 1184 times)

0 Members and 1 Guest are viewing this topic.

CAT_SHIT_ONE_MM

  • Guest
How to make open doors?
« on: 05 Oct 2002, 20:06:41 »
Hi.  I'm working very fast with the models.  I've already made the crator model, wooden bridge model, and 3 building models (which all still have some problems) and I came up to a problem (again) in the buildings.... Well, the exterior model is finish and I was going to work on the interior of one building.  But do we need to make it in another LOD? Because I'm making everything in a single LOD which is the 0.0000 (and ofcourse the geometry to give it solidity)  

Do I have to make another LOD for animations? Animations I'm refering is to the opening and closing door.  How is this accomplished? I thought I just had to rename the door selection to "osa_dvere" then

   class CATo2AfghanBuilding1: CATres_HousesDatadisk
   {
      scope=2
      DisplayName="CAT AfghanBuilding1 (o2)";
      model="\CATIntro\CATo2AfghanBuilding1.p3d";
      animated=1
      class Animations
      {
         class CATDvere1
         {
            memory=0
            type="rotation";
            animPeriod=1
            selection="osa_dvere";
            axis="osa_dvere";
            angle0=0
            angle1=1.600000;
         };
         class CATDvere2
         {
            memory=0
            type="rotation";
            animPeriod=1
            selection="osa_dvere";
            axis="osa_dvere";
            angle0=0
            angle1=-1.600000;
         };
      };
      class UserActions
      {
         class OpenDoors1
         {
            displayName="$STR_DN_OUT_O_DOOR";
            position="osa_dvere";
            radius=2.500000;
            condition="this animationPhase ""CATDvere1"" < 0.5";
            statement="this animate [""CATDvere1"", 1]";
         };
         class CloseDoors1
         {
            displayName="$STR_DN_OUT_C_DOOR";
            position="osa_dvere";
            radius=2.500000;
            condition="this animationPhase ""CATDvere1"" >= 0.5";
            statement="this animate [""CATDvere1"", 0]";
         };
         class OpenDoors2
         {
            displayName="$STR_DN_OUT_O_DOOR";
            position="osa_dvere";
            radius=2.500000;
            condition="this animationPhase ""CATDvere2"" < 0.5";
            statement="this animate [""CATDvere2"", 1]";
         };
         class CloseDoors2
         {
            displayName="$STR_DN_OUT_C_DOOR";
            position="osa_dvere";
            radius=2.500000;
            condition="this animationPhase ""CATDvere2"" >= 0.5";
            statement="this animate [""CATDvere2"", 0]";
         };
      };
   };

am I doing something wrong?? Oh ya, before renaming all the selections and positions to "osa_dvere" there was names like osa_dvere2 and osa_dvere1 for positions and stuff... Positions?? Does it mean that I have to make another selection or another LOD??

Any help is appreciated.  Thanks.