Jump to content

Add blinking function in Lua API


basox70
 Share

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...