vis icon indicating copy to clipboard operation
vis copied to clipboard

Time event

Open erf opened this issue 5 years ago • 0 comments

I would like to perform a custom command at spesific time intervals, but it doesn't seem like Lua support this type of operation. Would it make sense to add support for this in the vis editor, perhaps extend the Lua API?

Example API:

Vis:time(ms) fire a TIME event in a given time, which you could subscribe to:

vis.events.subscribe(vis.events.TIME, function(id)
	-- do something useful
	return true
end)

erf avatar Oct 13 '20 17:10 erf