game_self_switches (remove self switch control)

Hi! So in VX Ace we could use the following to enable/disable a self switch:


key = [137, 1 , "A"]
$game_self_switches[key] = true


Is there a way to do this in RPG Maker MV as well?


Thank you in advance!
key = [137, 1 , "A"]


$gameSelfSwitches.setValue(key, true);
key = [137, 1 , "A"]


$gameSelfSwitches.setValue(key, true);



Thanks a lot!

Original thread: https://forums.rpgmakerweb.com/threads/game_self_switches-remove-self-switch-control.63340/