Jump to content

Photo
- - - - -

Animate door of the LVTP-7


  • Please log in to reply
2 replies to this topic

#1 catito14

catito14

    Sergeant

  • Members
  • 152 posts

Posted 18 February 2010 - 06:55 PM

Hi, i need to make the animation to open the back door of the Amphibious LVTP-7. I tried but i do not have luck. Here is what i did:

I put in the Class Animations this:

class puertalvtp7
{
type = "rotation";
animperiod = 3.7;
selection ="ramp";
axis = "alfa_porton";
angle0 = 0;
angle1= 2.100;
};


And in CFGVehicles in the class of the Vehicle i put this:

class UserActions
{

// Abrir y cerrar el porton
class SubirPorton
{
displayName="Subir Porton";
position="alfa_porton";
radius=3.2
condition="this animationPhase ""puertalvtp7"">= 0.5";
statement="this animate [""puertalvtp7"", 0]";
};
class BajarPorton
{
displayName="Bajar Porton";
position="alfa_porton";
radius=3.2
condition="this animationPhase ""puertalvtp7"" < 0.5";
statement="this animate [""puertalvtp7"", 1]";
};
};


What is wrong with this??

Regards

Edited by catito14, 20 February 2010 - 02:27 AM.

Posted Image

#2 F2F_BHO

F2F_BHO

    Staff Sergeant

  • Members
  • 276 posts

Posted 03 February 2012 - 11:26 PM

well you might get some better info if it where in English as well could you try translating please/
Posted Image
"Some of u been trying to write rhymes for years but weak ideas irratate my ears,is this the best that you can make? Cause if not and you got more then I'll wait"

#3 Drunken Officer

Drunken Officer

    Sergeant

  • Members
  • 180 posts

Posted 19 February 2012 - 05:47 PM

config.cpp

class AnimationSource {
class puertalvtp7
{
scope = true
animPeriod = 3.7;
initPhase = 0;
};};

After your "radius" is a ; missing