Home   Help Search Login Register  

Author Topic: Anim config help needed  (Read 1731 times)

0 Members and 1 Guest are viewing this topic.

Wires

  • Guest
Anim config help needed
« on: 13 Jan 2003, 14:18:09 »
Please tell me what the hell is wrong with this bit of my .cpp if taken out it works fine but with the anim config in A instead of = bull$hit

   Class Animations
   {
      class Hatch
      {
      type="rotation";
      animPeriod=2;
      selection="Hatch";
      axis="OsaHatch";
      angle0=0;
      angle1=-3.054314;
      };
   };
   class UserActions
   {
      class CloseHatch
      {
      displayName="Close Hatch";
      position="Hatch";
      radius=3;
      condition="this animationPhase ""Hatch"" >= 0.5 and player in this";
      statement="this animate [""Hatch"", 0]";
      };
      class OpenHatch
      {
      displayName="Open Hatch";
      position="Hatch";
      radius=3;
      condition="this animationPhase ""Hatch"" < 0.5 and player in this";
      statement="this animate [""Hatch"", 1]";
      };
        };

Basically straight from Colonel Klinks' tute just with the names changed ect

Skaircro

  • Guest
Re:Anim config help needed
« Reply #1 on: 14 Jan 2003, 17:22:02 »
Did you add the vertice in your memory LOD for you *class UserActions position="Hatch";*?
Like Colonel Klinks *position="GearArea";*?
 ???

Wires

  • Guest
Re:Anim config help needed
« Reply #2 on: 15 Jan 2003, 01:50:31 »
I thought you were on to something so I fixed that, thanks for pointing it out (the name was wrong) but it still doesn't work.  :'(

DeadMeatXM2

  • Guest
Re:Anim config help needed
« Reply #3 on: 15 Jan 2003, 12:46:53 »
try re-naming the vertice in the memory lod to pos_hatch, and then adjusting the position entries in the config to read

Quote
position="pos_Hatch";

Wires

  • Guest
Re:Anim config help needed
« Reply #4 on: 15 Jan 2003, 14:05:21 »
Well it didn't work so here's the entire config

DeadMeatXM2

  • Guest
Re:Anim config help needed
« Reply #5 on: 15 Jan 2003, 23:26:23 »
hmmm, what version of ofp are you running wires?

because the custom animations only work with 1.85+

i only say this because i noticed:
Quote
requiredVersion = 1.30;
...................

Wires

  • Guest
Re:Anim config help needed
« Reply #6 on: 16 Jan 2003, 08:16:44 »
Well I an running 1.91 so that shouldn't be a problem, however I did change the required ver bit just in case but no luck

DeadMeatXM2

  • Guest
Re:Anim config help needed
« Reply #7 on: 16 Jan 2003, 11:15:24 »
ah, ok, well make sure that the hatch is defined in all the lods, and in the memory.

I can't see anyhting wrong with the config so.....

[edit] You could try re-naming the animation class hatch to "class adfhatch" so that it doesn't conflict with any BIS enteries...[/edit]
« Last Edit: 16 Jan 2003, 11:52:26 by DeadMeatXM2 »