Home   Help Search Login Register  

Author Topic: animation script goes wrong  (Read 416 times)

0 Members and 1 Guest are viewing this topic.

Lordremcok

  • Guest
animation script goes wrong
« on: 30 Aug 2003, 03:25:47 »
ok i made a carousell :)
it suposed to spin but why my unit doesn't rotate with the carousell ??
is it possible to animate "proxy:cargo" with the other rotating object, using switch ?

it acts like a car with 1 ( temporary ) cargo unit space.
HELP ME please

#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7
#define true 1
#define false 0
#define private 0
#define protected 1
#define public 2


class CfgPatches
{
   class lrd_carousell
   {
      units[] = {lrd_carousell};
      weapons[] = {};
      requiredVersion = 1.85;
   };
};

class CfgVehicles
{
   class All {};
   class AllVehicles: All {};
   class Land: AllVehicles {};
   class LandVehicle: Land {};
   class Car: LandVehicle {};
   class lrd_carousell: Car
   {
      
      model="\lrd_carousell\lrd_carousell";
      armor=2000;
      scope=2;
      displayName="lrd_carousell";  
                crew="Civilian2";
                hasDriver=0;
                transportSoldier=1;
                transportAmmo=0;
                hasgunner=0;
      cargoAction[]={"ManActJeepCoDriver"};
      typicalCargo[]={"Civilian2","Civilian3"};
      animated=1;
      class Animations
      {
         class ani_carousell
         {
            type="rotation";
            animPeriod=6000;
            selection="carousell";
            axis="carousell_axis";
            angle0=0;
            angle1=-14400;
         };
      };

      class UserActions

      {
      
         class switchrunbackward
         {
            displayName="run carousell backward";
            position="pos_carousell";
            radius=2.000000;
            condition="this animationPhase ""ani_carousell"" < 0.5";
            statement="this animate [""ani_carousell"", 0]";
         };
         class switchrunforward
         {
            displayName="run carousell forward";
            position="pos_carousell";
            radius=2.000000;
            condition="this animationPhase ""ani_carousell"" < 0.5";
            statement="this animate [""ani_carousell"", 1]";
         };
               
      };

   };

};
class CfgNonAIVehicles
{
   class ProxyCrew {};
   class ProxyDriver: ProxyCrew {};
   class ProxyTrabiDriver: ProxyDriver {};
};


Rubble_Maker

  • Guest
Re:animation script goes wrong
« Reply #1 on: 30 Aug 2003, 12:38:09 »
Sorry to tell you, but AFAIK proxies cannot be animated :(
*Maybe* you could move your unit with the carussel using a script that uses setpos, but that might look not so great, dunno.

Lordremcok

  • Guest
Re:animation script goes wrong
« Reply #2 on: 31 Aug 2003, 14:07:52 »
ok ok
 Iworked all night  get pissed couple of times bit finally i do it ALMOST allone using other scripts and ripping game :)

There is still 1 problem but it can be bypased for now
THX anyway

IF ANYONE WULD READ THIS TOPIC KNOW THAT I KNOW HOW TO PUT

------- NEW SPEAKER ----------

to operation flashpoint

mail me if u dont know something LORDREMCOK@INTERIA.PL