Sorry, we don't support your browser.  Install a modern browser

Add Tool-selection through Scripting#799

It would be really powerful if we could be able to make a player select a tool with Lua scripting.

This would let us make certain interactions faster, such as switching to a draw tool when a game enters a drawing phase or switching to the gizmo tool when a player needs to move certain objects that should remain locked.

Plus it means we could turn off certain features like flicking and only allow them when under certain conditions that are dictated by scripting.

Ideally, usage of almost every tool would be able to be read so that the script could know when to change back to the Grab Tool. An example of that would be a script that:

  • switches you to the Draw Box Tool
  • broadcasts a message
  • after you’ve drawn 1 box switches you back to the Grab Tool.

Unfortunately there’s currently no onDraw() event so this couldn’t be detected, but that’s another suggestion.

If abuse of this is something that worries you, an option called something like “Allows scripts to change your selected tool” would solve the problem

3 years ago