Timer reset?

I have a timer on a window. The timer only counts up when the Door_Open tag is true. I would also like the timer to reset when the Door_Open tag is false but I can’t figure that part out. Is there any way to do this?

I know I could do it in FactorySQL but I prefer this timer to exist on the client for performance reasons because it is counting tenths of a second increments.

Sure, heres one way to do it: Put a dynamic property on some component (not the timer itself, unfortunately, they don’t support dynamic properties at this time). So maybe put it on the container that the timer is in. Call the dynamic property “DoorOpen”

Bind that dynamic property to the Door_open tag.

Add a propertyChange to the component with this dynamic property on it.

Make the action something like this:

if event.propertyName == 'DoorOpen' and event.newValue == 0: timer = event.source.getComponent("Timer") timer.value=0

Hope this helps,