Hey there! This plugin is great, but I am unable to join the discord(link invalid or no perms). I was wondering if anyone knew how to make a script call to check when a player is in "build mode"? I suppose I can get around this using switches, and a mess of other things, to have other events 'detect' the mode change. I was hoping for a neat solution using script checks and conditional branches...
Viewing post in Drag's Sandbox Map for MZ comments
Hello,
when build mode is activated, the code setup some listeners for key input and store them in an array, then clear them and empty the array when build mode is deactivated.
By checking if this array is empty or not, you can check if build mode is activated or not.
The script call to do so would be
Drag.SandboxMap?.listeners?.length > 0;
Hope that helps !