Page 1 of 1

ASP11: tool script not working if there's no OnMouseDown

Posted: Fri May 29, 2015 1:32 am
by Stan
Some of my tool scripts are stopped working in 11 without any visible error. The symptoms are simple: you click on the tool icon, and nothing happens. It took me a while to find the reason - the failing scripts didn't have the OnMouseDown method.

So, if your scripts are not working in ASP 11, try this workaround:

Code: Select all

function <yourScriptName>:OnMouseDown(moho, mouseEvent)
	-- do nothing
end