Triggering rule every 5 minutes
Hi Everybody,
So im working with the device clock and have it set up to count the minutes. Im wondering how I can have a rule refire every 5 minutes based on the device time. The device time keeps going and will not stop. Is there a way to set up a rule that when the device time is 5 minutes to fire rule and then when device time is 10 minutes, 15, 20 ect and keep going up in increments of 5. I cant have it be with a timer but with a math solution if possible.
Thanks
So im working with the device clock and have it set up to count the minutes. Im wondering how I can have a rule refire every 5 minutes based on the device time. The device time keeps going and will not stop. Is there a way to set up a rule that when the device time is 5 minutes to fire rule and then when device time is 10 minutes, 15, 20 ect and keep going up in increments of 5. I cant have it be with a timer but with a math solution if possible.
Thanks
Comments
When *Any* of the following are happening:
attribute-devices.clock.minute = 5
attribute-devices.clock.minute = 10
attribute-devices.clock.minute = 15
attribute-devices.clock.minute = 20
attribute-devices.clock.minute = 25
attribute-devices.clock.minute = 30
attribute-devices.clock.minute = 35
attribute-devices.clock.minute = 40
attribute-devices.clock.minute = 45
attribute-devices.clock.minute = 50
attribute-devices.clock.minute = 55
attribute-devices.clock.minute = 60
FIRE!!!
RULE:
When self.Time Check = game.Clock.Minute%5
- Add Behaviors here you want to fire every 5 minutes
If you want to change the time, just change the value 5 to the number of minutes you would like for each interval.
Thanks
Thanks