Sign in to follow this  
Guest dupa

XML timer delay for makemdl part visibility toggle

Recommended Posts

I'm strugling with a bit of code in 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!

Share this post

Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this