Home   Help Search Login Register  

Author Topic: ANIMATION PROBLEM  (Read 517 times)

0 Members and 2 Guests are viewing this topic.

Lordremcok

  • Guest
ANIMATION PROBLEM
« on: 29 Aug 2003, 15:25:19 »
OK HERE IS THE SCRIPT - look at it the qestion s at the bottom of the topic
-------------------------------------------
class CfgPatches
{
   class lrd_grasss1
   {
      units[] = {lrd_grasss1};
      weapons[] = {};
      requiredVersion = 1.0;
   };
};
class CfgVehicles
{
   class All {};
   class Static: All {};
   class Building: Static {};
   class NonStrategic: Building {};
   class TargetTraining: NonStrategic {};
   class TargetGrenade: TargetTraining {};
   class lrd_grasss1: TargetGrenade
   {
      model="\lrd_grasss1\lrd_grasss1";
      armor=20000;
      scope=2;
      displayName="lrd_grasss1";
      
      animated=1;
      class Animations
      {
         // The travka anim1
         class ani_travka1
         {
            angle0=0;
            angle1="-20000 * 3.141592654";
            multiplyer=20;
            type="rotation";
            animPeriod=100000;
            selection="travka1";
            axis="travka1_axis";
         };

         // The travka anim2
         class ani_travka2
         {
            angle0=0;
            angle1="-20000 * 3.141592654";
            multiplyer=20;
            type="rotation";
            animPeriod=100000;
            selection="travka2";
            axis="travka2_axis";
         };

      };
      // Eventhandler class
      class eventhandlers
      {
         init="(_this select 0) animate [""ani_travka1"", 1]";
      };
   };
};
---------------------------------------------------------------
HOW THE HELL AM I  SUPPOSED TO ANIMATE "ani_travka2" in eventhandler option
i tried and i still dont know ( im  a moron PLEASE HELP , dont really know much about scripting , i used BRSSEB anim tutorial for this one, but i dont know how to initialize 2 animating objects)

HELP
THX