FSIC Messageboard
  Tech Talk
  obFunc and obExec Help

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   obFunc and obExec Help
jgro
Pilot
posted 05-10- 09:40 AM     Click Here to See the Profile for jgro   Click Here to Email jgro     Edit/Delete Message   Reply w/Quote
Hi all,

I'm trying to get obFunc and obExec to work on my Triplane with no luck. I put an obFunc on the middle aileron that tells it to detach: (obFunc (detach (obDetach))).

Then I put an obExec on the top aileron calling that function when the damage level reaches level 1: onDmg 1(obExec (Name 'MLAileron Func 'detach))

I can't get this @#$@#%^$ thing to work. What am I doing wrong?

jgro

------------------
Jgro's Aerodrome
www.jgrosaerodrome.50megs.com

[This message has been edited by jgro (edited 05-10-2001).]

IP: Logged

jedi
Pilot
posted 05-10- 12:02 PM     Click Here to See the Profile for jedi   Click Here to Email jedi     Edit/Delete Message   Reply w/Quote
Typically, you can't "target" a child object from another child object, i.e. you can't use the onDmg line to go from one aileron's damage to an obFunc for another aileron.

You could target the main Dr1 object from the aileron, or you could target either aileron from the main Dr1, but you can't go "outside the chain" of parts. Try this:

Put an obFunc under the MAIN Dr1 object. Have that obFunc detach the aileron. Then call the obFunc on the main Dr1 from the onDmg line of the first aileron.

Hehe and if you're trying to get the ailerons to stop working by detaching them, you can't A much more devious method is required...


------------------
--jedi--

IP: Logged

jgro
Pilot
posted 05-10- 01:14 PM     Click Here to See the Profile for jgro   Click Here to Email jgro     Edit/Delete Message   Reply w/Quote
Thanks Jedi

jgro

------------------
Jgro's Aerodrome
www.jgrosaerodrome.50megs.com

IP: Logged

jgro
Pilot
posted 05-10- 02:58 PM     Click Here to See the Profile for jgro   Click Here to Email jgro     Edit/Delete Message   Reply w/Quote
Care to enlighten me on how to kill my other ailerons when the top one detachs? PLEASE

From what I can tell, you can execute a function on the child from the parent, but you can't execute a function on the parent from the child. Is this true?

jgro

[This message has been edited by jgro (edited 05-10-2001).]

IP: Logged

jedi
Pilot
posted 05-10- 05:23 PM     Click Here to See the Profile for jedi   Click Here to Email jedi     Edit/Delete Message   Reply w/Quote
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--

IP: Logged

jgro
Pilot
posted 05-10- 10:38 PM     Click Here to See the Profile for jgro   Click Here to Email jgro     Edit/Delete Message   Reply w/Quote
Still no go. I did as you said and the ailerons still won't detach. If I add and (onDmg 1 (obExec (Name 'soptriplane Func 'Aileronkill) to the fuselage, the ailerons fall off no problem. So I know that part is correct. When I add it to the upper aileron, nothing happens.
I downloaded your F4U1a beta 3/15. It's gonna take me awhile to decipher it I couldn't fly it though, it CTD.

------------------
Jgro's Aerodrome
www.jgrosaerodrome.50megs.com

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | Fighter Squadron Information Center

(This site Copyright (c) 1999 Inertia LLC)

Powered by Infopop www.infopop.com © 2000
Ultimate Bulletin Board 5.45c