Home   Help Search Login Register  

Author Topic: Animation movement with Mouse  (Read 683 times)

0 Members and 1 Guest are viewing this topic.

Offline Trenchfeet

  • Members
  • *
  • I'm a llama!
    • Trenchfeet OFP Addons
Animation movement with Mouse
« on: 16 Mar 2003, 09:41:11 »
Is it possible that using animation command in the config.cpp file, as well as running scripts you can make an add-on that has movable parts when the mouse is pointed in a certain direction ?

This below is just a sample and would NOT work, but to explain what animation I mean.

class Animations
          {
         class someAnimation
         {   
         type = "rotation";
         animPeriod = 3;
         selection ="something";
         axis = "osa_something";
         angle0 = 0;
         angle1= -whatever;
         };
         };

The reason for this is because on a plane is not possible to make a gun turrent, could this be a way around the problem?

Does this make sense ???

Or is this taking up valuable space


Plizkin

  • Guest
Re:Animation movement with Mouse
« Reply #1 on: 17 Mar 2003, 15:00:47 »
 ??? ??? ???

toadeater

  • Guest
Re:Animation movement with Mouse
« Reply #2 on: 24 Mar 2003, 00:11:10 »
Is it possible that using animation command in the config.cpp file, as well as running scripts you can make an add-on that has movable parts when the mouse is pointed in a certain direction ?

That depends if you are allowed to define your own animation names, I haven't checked. If you can, then you can use overlay controls defined in description.ext to do it. Instead of having visible buttons, make a grid on screen using transparent bitmaps. When the person has the mouse over that part of the screen, it should be detected, then you can send commands to the animation script. The "grid" buttons can stay up the whole time, you wouldn't see them on screen.

Offline Trenchfeet

  • Members
  • *
  • I'm a llama!
    • Trenchfeet OFP Addons
Re:Animation movement with Mouse
« Reply #3 on: 24 Mar 2003, 00:54:04 »
Hi,
Ok I  understand what you' re saying, but I'm not that good a scripter.
Is there someone there able to help me test this idea.
Also would the bitmap images have to be very very very small  

Offline Igor Drukov

  • Contributing Member
  • **
  • Conscientious Subjector
Re:Animation movement with Mouse
« Reply #4 on: 04 Apr 2003, 15:59:38 »
Hi Trenchfeet
In answer to the message you sent me: I'm sorry, I don't know how to do what you want to do   :(.

MajestyTheDogg

  • Guest
Re:Animation movement with Mouse
« Reply #5 on: 06 Apr 2003, 11:43:51 »
Hi Trenchfeet, I got a question, e.g. helis could have a moveable mg, why couldn't planes have one???

anwp

  • Guest
Re:Animation movement with Mouse
« Reply #6 on: 06 Apr 2003, 12:34:18 »
Hi ,


Helis and aircrafts doesn't have the same config  :-\.

I tryed with the PaukBoat script , but the gunner doesn's stay in place .