April 19, 201016 yr Is there any way to have the MouseRect on the object that I am wanting to make dissappear ?I've seen that with other models, where clicking on the Co-Pilot makes the co-pilot dissapear, but if I read the Object Properties, it seems that the object can not have more then ONE user defined line, so I can't have visibility and clickablity ???Do I just have to put it close, like possibly the seat (that's a big box).
April 19, 201016 yr Moderator Is there any way to have the MouseRect on the object that I am wanting to make dissappear ?I've seen that with other models, where clicking on the Co-Pilot makes the co-pilot dissapear, but if I read the Object Properties, it seems that the object can not have more then ONE user defined line, so I can't have visibility and clickablity ???Do I just have to put it close, like possibly the seat (that's a big box).You can easily accomplish that, but to what end? Once you hid the object, how would you unhide it again?"Visibility" and the "Mouse Rectangle" are defined in two sections of an XML script. Use the Attach Tool to add both a "Visible" condition and a "Mouse" action to the same object!To "hide/unhide" a yoke for example, I put the "MouseRectangle" action on some part near the yoke, and tag the yoke itself with the "Visibility" condition.<Animation name="hide_pilots_yoke" guid="54647385-cff7-679c-a657-9b9cd33e4f12" length="100" type="Sim" typeParam2="hide_pilots_yoke" typeParam="AutoPlay" /> <PartInfo> <Name>hide_pilots_yoke</Name> <MouseRect> <Cursor>Hand</Cursor> <TooltipText>Hide Pilot's Yoke</TooltipText> <CallbackCode> (L:YokePilot,bool) ! (>L:YokePilot,bool) </CallbackCode> </MouseRect> </PartInfo> <PartInfo> <Name>yoke_pilot</Name> <Visibility> <Parameter> <Code>(L:YokePilot,bool) 0 > if{ 0 } els{ 1 }</Code> </Parameter> </Visibility> </PartInfo> Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
April 20, 201016 yr Author I see what you mean. I was trying to get my head around whether the object to be hidden was either invisible or gone, so it seems it is gone for the time being, therefore un-interactable.
Create an account or sign in to comment