Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Sliding door, not rotation.

  1. #1
    Master Gunnery Sergeant konyo's Avatar
    Join Date
    Jun 26 2009
    Location
    United kingdom
    Posts
    1,168

    Sliding door, not rotation.

    Im currently trying to make a cargo door on a helicopter slide open. Ive got it all defined in model.cfg and config.cpp however when i go in game the door rotates inwards? Not sliding across as it should?

    However looking into model.cfg this is why :
    Code:
    type = "rotation";
    What is the type that makes it slide open?
    And 2 axis points in middle of door or at beginging and end?

    Regards,

    *New Website, Check It Out! Just Click The Picture Above! *

    Follow konyo.webs On Twitter : https://twitter.com/konyoWebs

  2. #2
    http://community.bistudio.com/wiki/M...nimation_types

    Please do search the biki for such answers.

    For the memory points it doesn't matter. I think you can do it either in units or in the percent of the axis. It might be easiest to put a memory point at the beginning and end.


    Please use the CWR2 CBT to help us provide a better experience.
    Show solidarity in the face of those who want to violate your rights! Join the Addon Makers for Authors' Rights Forum Group Today!

    Note to all Squads and Clans. We have updated the S&FP forum guidelines. If you have a thread there, please read the new guidelines


  3. #3
    Master Gunnery Sergeant konyo's Avatar
    Join Date
    Jun 26 2009
    Location
    United kingdom
    Posts
    1,168
    Author of the Thread
    Quote Originally Posted by Max Power View Post
    http://community.bistudio.com/wiki/M...nimation_types

    Please do search the biki for such answers.

    For the memory points it doesn't matter. I think you can do it either in units or in the percent of the axis. It might be easiest to put a memory point at the beginning and end.
    Sorry thanks, never think to check Biki.
    Got it working, its sliding but its sliding the wrong way? Need it to go other way?

    Currently got translationZ

  4. #4
    You can turn around your axis by rotating it 180 degrees, or you can play with the offset0 and 1 values. First, try offset1 = -1.

  5. #5
    Master Gunnery Sergeant konyo's Avatar
    Join Date
    Jun 26 2009
    Location
    United kingdom
    Posts
    1,168
    Author of the Thread
    Quote Originally Posted by Max Power View Post
    You can turn around your axis by rotating it 180 degrees, or you can play with the offset0 and 1 values. First, try offset1 = -1.
    It runs the animation without an axis Where do i put offset? Model.cfg or config?

  6. #6
    You can see the parameters for animations in the model config in the website I gave you. I think this is what the base translation animation looks like (I'm sure there are people that know more about it):

    PHP Code:
    class Translation
    {
            
    type "translation";
            
    source "";
        
    sourceaddress "";
            
    selection "";
            
    memory true;
            
    axis "";
            
    begin "";
            
    end "";
        
    minValue 0;
        
    maxValue 1;
            
    minPhase 0;
            
    maxPhase 1;
        
    offset0 0;
        
    offset1 1;
    }; 
    Not all of those things have to be filled in, and in some cases the biki isn't clear, but all of those are explained in the animation properties part.

  7. #7
    Master Gunnery Sergeant konyo's Avatar
    Join Date
    Jun 26 2009
    Location
    United kingdom
    Posts
    1,168
    Author of the Thread
    Quote Originally Posted by Max Power View Post
    You can see the parameters for animations in the model config in the website I gave you. I think this is what the base translation animation looks like (I'm sure there are people that know more about it):

    PHP Code:
    class Translation
    {
            
    type "translation";
            
    source "";
        
    sourceaddress "";
            
    selection "";
            
    memory true;
            
    axis "";
            
    begin "";
            
    end "";
        
    minValue 0;
        
    maxValue 1;
            
    minPhase 0;
            
    maxPhase 1;
        
    offset0 0;
        
    offset1 1;
    }; 
    Not all of those things have to be filled in, and in some cases the biki isn't clear, but all of those are explained in the animation properties part.
    Got it working now, just decided to make the model start with the door open, and it closes the right way etc.

    Only trouble is when i open it, the option dont come up to close it again?
    Think its because the animation is too short.

    "this animate[""Ani_DriW"",0]"; - CLOSE

    "this animate[""Ani_GunW"",0.6]"; - OPEN

    As its 0.6, when i close it with 0, there is no option, but when i put it to 1 the option comes up to close it? :/

  8. #8
    you need to make user actions for those those animation sources, and make sure that they are configured properly. Your user action script probably has the condition > 0.9 or something. You should probably change that to 0.5;

  9. #9
    Master Gunnery Sergeant konyo's Avatar
    Join Date
    Jun 26 2009
    Location
    United kingdom
    Posts
    1,168
    Author of the Thread
    Quote Originally Posted by Max Power View Post
    you need to make user actions for those those animation sources, and make sure that they are configured properly. Your user action script probably has the condition > 0.9 or something. You should probably change that to 0.5;
    The user condition already has > 0.5:

    PHP Code:
    class AnimationSources 
            

                class 
    Ani_DriW 
                

                    
    source "user"
                    
    animPeriod 2
                    
    initPhase 0
                };
    }; 
    class 
    UserActions
    {
            class 
    CloseWindow1 
            

                    
    displayName "Close Pilot Window"
                    
    position "pos pilot"
                    
    radius 10
                    
    condition "(this animationPhase ""Ani_DriW"" < 0.5)&& (alive this)"
                    
    statement "this animate[""Ani_DriW"",0.6]"
                    
    onlyforplayer 1
                    
    priority 4.7
                    
    showWindow 1
                };
                class 
    OpenWindow1 
                

                    
    displayName "Open Pilot Window"
                    
    position "pos pilot"
                    
    radius 10
                    
    condition "(this animationPhase ""Ani_DriW"" < 0.5)&& (alive this)"
                    
    statement "this animate[""Ani_DriW"",0]"
                    
    onlyforplayer 1
                    
    priority 4.7
                    
    showWindow 1
                }; 
    & the model cfg:
    PHP Code:
    class Ani_DriW {
                    
    type "translationZ";
                    
    source "Ani_DriW";
                    
    animPeriod 3;
                    
    selection "Ani_DriW";
                    
    axis "Ax_DriW";
                    
    angle0 0;
                    
    angle1 "rad 36";
                }; 

  10. #10
    Quote Originally Posted by konyo View Post
    The user condition already has > 0.5:
    No it doesn't. Check again

    Quote Originally Posted by konyo View Post
    & the model cfg:
    PHP Code:
             class Ani_DriW 
            
    {
            
    type "translationZ";
            
    source "Ani_DriW";
            
    animPeriod 3;
            
    selection "Ani_DriW";
            
    axis "Ax_DriW";
            
    angle0 0;
            
    angle1 "rad 36";
            }; 
    Type=translation... angle =? Whatever works

Page 1 of 2 12 LastLast

Similar Threads

  1. sliding door or a building
    By mike44 in forum ARMA 2 & OA : ADDONS - Configs & Scripting
    Replies: 7
    Last Post: Apr 7 2012, 07:35
  2. Animation Sliding Doors help please
    By ladie from hell in forum OFP : CONFIGS & SCRIPTING
    Replies: 6
    Last Post: Aug 1 2010, 01:40
  3. Double sliding doors
    By stu in forum OFP : CONFIGS & SCRIPTING
    Replies: 4
    Last Post: Nov 23 2004, 05:19
  4. Sliding door anim
    By BIZARO in forum OFP : CONFIGS & SCRIPTING
    Replies: 7
    Last Post: Mar 2 2003, 08:26
  5. Sliding around the taxiway!
    By vader_21vb in forum OFP : O2 MODELLING
    Replies: 4
    Last Post: Jan 10 2003, 06:56

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •