Home   Help Search Login Register  

Author Topic: 2 rpm meters & animations in sync  (Read 1043 times)

0 Members and 1 Guest are viewing this topic.

Offline Trenchfeet

  • Members
  • *
  • I'm a llama!
    • Trenchfeet OFP Addons
2 rpm meters & animations in sync
« on: 23 Mar 2003, 11:59:19 »
1st Problem....

Can a 2nd RPM meter be added in an addon?

(I tried in o2 after selecting the object naming it rpm2 and also adding osa_rpm2 then defining what it does in the configg.cpp but it didn't work)


2nd Problem....

I have added animations for my plane such as flapstick, toggle switches, key on/off. (to give move feeling in the plane).

All these animations work 100%. I tested by doing the following in the cpp

class UserActions
{
class Keyon
{
    displayName="Key on";
    position="osa_key";
    radius=2.500000;
    condition="this animationPhase ""keyAnimation"" < 0.5"; statement="this animate [""keyAnimation"", 1]";
};
   class Keyoff
{
    displayName="Key off";
    position="osa_key";
    radius=2.500000;
    condition="this animationPhase ""keyAnimation"" >= 0.5"; statement="this animate [""keyAnimation"", 0]";
};
etc......for the others

But i want them to perform their action, when just clicking ENGINE ON, FLAPS DOWN, in the action menu (bottom right).

Can someone suggest how to do this in the config.cpp or is a script required

You may have noticed on bratty's plane that his gear animation work with the GEAR DOWN action command.

If you don't under stand what i mean i can send u a small addon that will show you what i mean
Thanks  

Rubble_Maker

  • Guest
Re:2 rpm meters & animations in sync
« Reply #1 on: 28 Mar 2003, 00:18:53 »
No idea as to your other questions, but the ENGINE ON user action you can catch using the EnineOn event handler. Overriding built-in actions doesn't work though.