Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Sliding door, not rotation.

  1. #11
    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
    No it doesn't. Check again

    Type=translation... angle =? Whatever works
    Tryed changing the condition to > 0.6: As its the same as animate length?
    Still nothing

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

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

  2. #12
    Okay, here's what the problem is.

    PHP Code:
     class CloseWindow1 
            
    {  condition "(this animationPhase ""Ani_DriW"" ***** < 0.5****)&& (alive this)";  
                
    statement "this animate[""Ani_DriW"",0.6]"
    "Move the animation to the animation phase of 0.6 if and only if the animation phase is less than 0.5."

    The animation phase is at 0. You can animate on the condition that the animation phase is less than 0.5 (it is). You have the option to animate.

    PHP Code:
     class OpenWindow1 
                
    {  condition "(this animationPhase ""Ani_DriW"" ***** < 0.5****)&& (alive this)";  
                    
    statement "this animate[""Ani_DriW"",0]"
    "Move the animation to the animation phase of 0 if and only if the animation phase is less than 0.5."

    The animation phase is at 0.6. You can animate on the condition that the animation phase is less than 0.5 (or less than 0.6, neither of which is true). You have no option to animate.

    You have to switch the less than 0.5 to greater than 0.5, or some other number that makes sense.


    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. #13
    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
    Okay, here's what the problem is.

    PHP Code:
     class CloseWindow1 
            
    {  condition "(this animationPhase ""Ani_DriW"" ***** < 0.5****)&& (alive this)";  
                
    statement "this animate[""Ani_DriW"",0.6]"
    "Move the animation to the animation phase of 0.6 if and only if the animation phase is less than 0.5."

    The animation phase is at 0. You can animate on the condition that the animation phase is less than 0.5 (it is). You have the option to animate.

    PHP Code:
     class OpenWindow1 
                
    {  condition "(this animationPhase ""Ani_DriW"" ***** < 0.5****)&& (alive this)";  
                    
    statement "this animate[""Ani_DriW"",0]"
    "Move the animation to the animation phase of 0 if and only if the animation phase is less than 0.5."

    The animation phase is at 0.6. You can animate on the condition that the animation phase is less than 0.5 (or less than 0.6, neither of which is true). You have no option to animate.

    You have to switch the less than 0.5 to greater than 0.5, or some other number that makes sense.
    Im really sorry but that still dont make sense

    So i need to change the condition to greater? As its 0.6? :/

  4. #14
    The condition states that you only have the option for the user action if the controller is less than 0.6. The controller, I believe, is moving from 0 to 0.6 when you close the window. So now the state of the controller is now 0.6.

    The open window action will only be present if its conditions are true. One of the conditions is that the controller must be less than 0.6.

    0.6 < 0.6. True or false?
    Last edited by Max Power; Jun 4 2012 at 23:57.

  5. #15
    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
    The condition states that you only have the option for the user action if the controller is less than 0.6. The controller, I believe, is moving from 0 to 0.6 when you close the window. So now the state of the controller is now 0.6.

    The open window action will only be present if its conditions are true. One of the conditions is that the controller must be less than 0.6.

    0.6 < 0.6. True or false?
    So changed it to 0.5? or 0.4?
    Still dont work

    I think ill remove the animation, nothing but annoyance

  6. #16
    Maybe its not even capable of reaching such heights as 0.4 or 0.5 ?

    class Ani_DriW {
    type = "translationZ";
    source = "Ani_DriW";
    animPeriod = 3;
    selection = "Ani_DriW";
    axis = "Ax_DriW";
    angle0 = 0;
    angle1 = "rad 36";
    look at angles shouldnt even have angles ? ,you need some min and max phaes i think also 0 and 1 ,

    open door in mission ad get myani = chopper animationphase Ani_DriW ; hintsilent format ["anim phase is %1", myani]

    what is it saying ? 1 ? i doubt it to be honest but i never know with this engine

    whatever it says then this is the value you need for your switch trigger
    A chopper cup of Coffee in a chopper coffee pot
    TOH Now with added Coffee
    http://www.helpivanmartin.org/

  7. #17
    Quote Originally Posted by konyo View Post
    So changed it to 0.5? or 0.4?
    Still dont work

    I think ill remove the animation, nothing but annoyance
    Just change it to

    condition = "(this animationPhase ""Ani_DriW"" > 0)&& (alive this)";

  8. #18
    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
    Just change it to

    condition = "(this animationPhase ""Ani_DriW"" > 0)&& (alive this)";
    Thanks

Page 2 of 2 FirstFirst 12

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
  •