posted 05-10- 05:23 PM
Hmmm. I've been able to execute functions on the MAIN parent from child objects. I don't think you can execute an obFunc on the wing, for example, from the aileron, but you could execute a function on the fuselage object.If you just want to "detach" the ailerons, there are several ways to do it. One is to create an obFunc under the Dr1 object, i.e. obFunc (AileronKill (obExec (Name 'aileron1 Func 'detach) (Name 'aileron2 Func 'detach) (Name 'aileron3 Func 'detach))) (Not sure I got those parentheses right)
Then, on each aileron, have onDmg 1 (obExec (Name 'dr1 Func 'AileronKill)) That would knock the other two aileron OBJECTS off anytime the first one gets damaged.
Or, on the wing, add an "onChildDetach--aileron1--obExec--aileron2--detach" sort of setup.
Now if you want the ailerons to actually stop WORKING, it's complicated
The "aerodynamic forces" of the ailerons are actually coded into the wings themselves via the wing properties. You basically have to either detach a section of the wing that "contains" the aileron properties, or replace the wing with an identical one, which has no aileron properties. If you have the new P-51D beta version, it uses one technique, and the F4U-1A beta (or the Aussie Spits) use the other technique. The DVII also has control surface failure I think, if you want to look at a biplane.
Probably better for you to look at those in OPS rather than to have me try to explain the whole process. Basically you create "phantom" wings which include the aileron properties, and then detach them with damage.
------------------
--jedi--