OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Wires on 13 Jan 2003, 14:18:09

Title: Anim config help needed
Post by: Wires 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
Title: Re:Anim config help needed
Post by: Skaircro 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";*?
 ???
Title: Re:Anim config help needed
Post by: Wires 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.  :'(
Title: Re:Anim config help needed
Post by: DeadMeatXM2 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";
Title: Re:Anim config help needed
Post by: Wires on 15 Jan 2003, 14:05:21
Well it didn't work so here's the entire config
Title: Re:Anim config help needed
Post by: DeadMeatXM2 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;
...................
Title: Re:Anim config help needed
Post by: Wires 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
Title: Re:Anim config help needed
Post by: DeadMeatXM2 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]