Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

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...

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 !

(1 edit)

You are one of the good people in this world. Don't let anyone tell you different. This works exactly how you said. Thanks a million, keep on being awesome.