|
Author
|
Topic: altering a CDial
|
bjorn Pilot
|
posted 05-13- 12:58 PM
A long time ago, I defined functions for CDial objects to redefine their Max/Min values, that were used to simulate instrument damage. This worked fine. Now, however, I was thinking that I'd make the control stick switch over to use the right aileron as the data source if the left one was gone.I defined this function for the stickAileron object: code:
(obFunc (useRight ( obSmokeTrail (smkColor 255 0 0) dataSource 'aileronR dataQuery (qryPosition 'aileronR) )))
When the left wing tip detaches the function is called. It doesn't have any effect at all, other than to spout out red smoke, though :-( What gives? What's wrong? IP: Logged |
jedi Pilot
|
posted 05-13- 08:16 PM
If you can't get it working, maybe just make a duplicate stick, key it off of the other aileron, obHide it, and if the first aileron is shot off, obDetach the original stick and unHide the second one.Might work? ------------------ --jedi-- IP: Logged | |