Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

XML timer delay for makemdl part visibility toggle

Featured Replies

I'm strugling with a bit of code in makemdl.parts.xml and I am sure there is a simple solution for the problem:What I want to achieve is set a small delay between a mouse click and the toggle of the visibility of another part. In other words, I need the following sequence of events:Part visibleclick2 second delayPart invisibleclick2 second delayPart visibleThe clickable part is hopper_door:hopper_door(L:HOPPER,bool) 100 *30...(L:HOPPER,bool) ! (>L:HOPPER,bool)(P:ABSOLUTE TIME,seconds) (>L:HOPPER TIMER,seconds)...For the part with the visibility constraint (hopper_dark) I've tried variations of the following:hopper_dark(P:ABSOLUTE TIME,seconds) (L:HOPPER TIMER,seconds) - 2 > (L:HOPPER DARK,bool) ! (>L:HOPPER DARK,bool)1But this doesn't work properly (part visibility cycles on every click instead of toggling). Is there a simple way to solve this problem?Thanks!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.