OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
??? ??? ???
-
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.
-
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
-
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 :(.
-
Hi Trenchfeet, I got a question, e.g. helis could have a moveable mg, why couldn't planes have one???
-
Hi ,
Helis and aircrafts doesn't have the same config :-\.
I tryed with the PaukBoat script , but the gunner doesn's stay in place .