Board index FlightGear Support Flying

Disabling visible pilot

Controlling your aircraft, using the autopilot etc.

Disabling visible pilot

Postby Silverjake » Sun Jan 14, 2018 5:08 pm

Hello,
I was wondering if there is any way to disable the visible pilot in the cockpit of an aircraft. I'm trying to fly the P-51D, but the pilot's arm is obstructing certain controls such as the rudder and aileron trim. Any help is appreciated, thank you in advance.
Silverjake
 
Posts: 8
Joined: Fri Jan 12, 2018 2:28 am

Re: Disabling visible pilot

Postby wkitty42 » Sun Jan 14, 2018 5:26 pm

look in the F10->p51 menu... there is generally an option in there to turn off the walker characters... you might even find one to turn off the stick/yoke so you have a clear view of the dash board...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 4535
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Disabling visible pilot

Postby Silverjake » Sun Jan 14, 2018 6:00 pm

There is an option that says "pilot enable/disable always visible" but it doesn't seem to change anything.
Silverjake
 
Posts: 8
Joined: Fri Jan 12, 2018 2:28 am

Re: Disabling visible pilot

Postby Thorsten » Sun Jan 14, 2018 6:21 pm

Does it give any error to the console/log when you try to disable it? Options which don't do anything generally are suspicious...

Otherwise: Where did you get the P-51D from?
Thorsten
 
Posts: 9530
Joined: Mon Nov 02, 2009 8:33 am

Re: Disabling visible pilot

Postby Silverjake » Sun Jan 14, 2018 7:05 pm

No, I don't see any errors. I got the plane from the selection in the launcher.
Silverjake
 
Posts: 8
Joined: Fri Jan 12, 2018 2:28 am

Re: Disabling visible pilot

Postby wkitty42 » Sun Jan 14, 2018 7:48 pm

the pilot is only removed from view in the cockpit view... when you use v/V to have other views, the pilot is in the view...

so to test this (as i've just done)... load up the craft and then look downward toward the stick and seat so you can see the pilot's arm and hand holding the stick... in my view, i have the "no hand hold" text at the very top center of the screen... then F10->P-51D and click on that pilot enable option... the pilot will disappear... click on it again and the pilot comes back... right hand on the stick, left hand on the throttle... now hit 'v' (lower case) one time to switch to the helicopter view... move around to the side of the craft, the pilot is in the craft... click the pilot enable again and he does not leave the cockpit but if you hit the 'V' (capital) and go back to the cockpit, you won't see him...

so apparently this pilot toggle option is only for the cockpit view... the pilot will be visible in the other views...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 4535
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Disabling visible pilot

Postby Silverjake » Sun Jan 14, 2018 8:00 pm

Hmm, I tried exactly what you described but the pilot did not disappear. I don't know if its my game or if I have some weird setting that is stopping me from disabling the visible pilot.
Silverjake
 
Posts: 8
Joined: Fri Jan 12, 2018 2:28 am

Re: Disabling visible pilot

Postby Thorsten » Mon Jan 15, 2018 6:16 am

I've just had a look and I can't reproduce that here (fresh svn checkout of the FGAddon P-51D).

The actual code is very simple

Code: Select all
 <animation>
   <type>select</type>
   <object-name>pilot</object-name>
   <condition>
   <or>
       <greater-than>
         <property>/sim/current-view/view-number</property>
         <value>0.0</value>
       </greater-than>
       <greater-than>
         <property>/fdm/jsbsim/systems/pilotAlwaysVisible</property>
         <value>0.0</value>
       </greater-than>
       <!-- so the pilot is always visible on multiplayer -->
       <not-equals>
         <property>/sim/aircraft</property>
         <value>p51d-jsbsim</value>
       </not-equals>           
     </or>
   </condition>
 </animation>


it checks view number, whether you are in the plane or seeing it via MP and the property /fdm/jsbsim/systems/pilotAlwaysVisible which the menu option toggles between 0 and 1.

What does the property do when you switch the option - can you check with the property browser?
Thorsten
 
Posts: 9530
Joined: Mon Nov 02, 2009 8:33 am

Re: Disabling visible pilot

Postby Silverjake » Tue Jan 16, 2018 1:11 am

It toggles between 1 and 0, but the pilot does not disappear.
Silverjake
 
Posts: 8
Joined: Fri Jan 12, 2018 2:28 am

Re: Disabling visible pilot

Postby Richard » Tue Jan 16, 2018 5:22 am

In the F-15D I have fancy logic to disable the pilot model depending on which seat is occupied (pilot or WSO).

Until recently I didn't realise that the F-14 does this much more elegantly by simply having a 1 meter minimum range animation which hides the appropriate model when sitting in that seat.

at the end of pilot..xml:

Code: Select all
  <animation>
        <type>range</type>
        <min-m>1</min-m>
        <max-m>9999</max-m>
    </animation>
Richard
 
Posts: 591
Joined: Sun Nov 02, 2014 10:17 pm
Version: Git
OS: Win10

Re: Disabling visible pilot

Postby Thorsten » Tue Jan 16, 2018 6:14 am

It toggles between 1 and 0, but the pilot does not disappear.


Somewhat mysterious... - and what's /sim/current-view/view-number and /sim/aircraft ?
Thorsten
 
Posts: 9530
Joined: Mon Nov 02, 2009 8:33 am


Return to Flying

Who is online

Users browsing this forum: No registered users and 2 guests