Jump to content

Add blinking function in Lua API


Recommended Posts

Hi there,

I know there is many way to make light blinks (using unit.tick, or analog elements)

But in my opinion there should be functions in Lua like

"toggleBlink": to toggle the blink state

"setBlinkOffTime": to set blink off time

"setBlinkOnTime": to set blink on time

"getBlinkStatus": to know if blink is enable (1) or disable (0)

(names are just here as exemple)

and why not other function to enable/disable it directly ?


This would allow us to easily switch a light from a blinking state to a static state


Link to comment
Share on other sites

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
  • Create New...