Playing sound when float reaches zero (Door close/open)?

Ahoy
Thu, 20 Nov 2014 02:43:40 +0000
Community & Industry Discussion

I’m working on a door at the moment. Sounds pretty simple, I know. I’m testing out as many elements of this blueprint as possible. Currently, I have a door which you can pull/push (by scrolling down/up respectively). This works by using a float for the door relative rotation as shown here:

http://ss.myth.ro/t/w383a.png

However, I’m trying to find out when my door is open or closed so that I can start playing some sounds (and other actions) depending on it’s state.

I’ve tried checking “IF Door Rotation is equal to 0”, and if so, setting a bool to true, however this doesn’t seem to work well as (according to my printed string), the door will flicker between true and false while open and not moving, and stay true while closed.

So, I’m a little stuck. I’m trying to figure out a way that I can know when the door is first opened, closed and (if possible) if it’s currently rotating/moving. This way, I’m able to create events for these states and start playing sounds, etc.

In a similar way to how I manage locked doors:

http://ss.myth.ro/t/0a72h.png

It’s worth mentioning that I’m not animating my door open/close with a timeline. I only use a timeline for the door handle animation (as above).

Thanks in advance!

9 posts - 1 participant