OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Trenchfeet on 16 Mar 2003, 09:41:11

Title: Animation movement with Mouse
Post by: Trenchfeet 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

Title: Re:Animation movement with Mouse
Post by: Plizkin on 17 Mar 2003, 15:00:47
 ??? ??? ???
Title: Re:Animation movement with Mouse
Post by: toadeater 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.
Title: Re:Animation movement with Mouse
Post by: Trenchfeet 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  
Title: Re:Animation movement with Mouse
Post by: Igor Drukov 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   :(.
Title: Re:Animation movement with Mouse
Post by: MajestyTheDogg 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???
Title: Re:Animation movement with Mouse
Post by: anwp 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 .