The condition must be entered in the main java file of the aircraft (not the cockpit java files) and must include an "order" to be effective only in cockpit view and not in external view. Example: to suppress the meshes Blister1_D0, Blister2_D0, Pilot1_D0, HMask1_D0, Head1_D0
public void update(float f)
{
super.update(f);
super.onAircraftLoaded();
if(super.FM.isPlayers())
if(!Main3D.cur3D().isViewOutside())
{
hierMesh().chunkVisible("Blister1_D0", false);
hierMesh().chunkVisible("Blister2_D0", false);
hierMesh().chunkVisible("Head1_D0", false);
hierMesh().chunkVisible("HMask1_D0", false);
hierMesh().chunkVisible("Pilot1_D0", false);
} else
{
hierMesh().chunkVisible("Blister1_D0", true);
hierMesh().chunkVisible("Blister2_D0", true);
hierMesh().chunkVisible("Head1_D0", true);
hierMesh().chunkVisible("HMask1_D0", true);
hierMesh().chunkVisible("Pilot1_D0", true);
}
if(super.FM.isPlayers())
{
if(!Main3D.cur3D().isViewOutside())
hierMesh().chunkVisible("Blister1_D1", false);
hierMesh().chunkVisible("Blister2_D1", false);
hierMesh().chunkVisible("Blister1_D2", false);
hierMesh().chunkVisible("Blister2_D3", false);
hierMesh().chunkVisible("Pilot1_D1", false);
}
}