Jump to content

Photo
- - - - -

Animate door of the LVTP-7


  • Please log in to reply
2 replies to this topic
Thread Starter
catito14
catito14

    Sergeant

  • Members
  • 152 posts

#1

Posted 18 February 2010 - 18:55

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.

Posted Image

F2F_BHO
F2F_BHO

    Staff Sergeant

  • Members
  • 276 posts

#2

Posted 03 February 2012 - 23:26

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"

drunken officer
drunken officer

    Sergeant

  • Members
  • 182 posts

#3

Posted 19 February 2012 - 17:47

config.cpp

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

After your "radius" is a ; missing