MV Moving Battle Command window next to Actor

Hello! I'm using Mog's Battle Command plugin for its radial menu, is there any way to set its position based on the current position of an SV actor? Specifically I want to set it right next to a character, if possible. Appreciate any help!
Try slapping something like this (I added the last if conditional there) in the MOG code (change the reductions to X and Y, you might have to make those depending on the index):

var _alias_mog_bcom_wcom_update = Window_ActorCommand.prototype.update;
Window_ActorCommand.prototype.update = function() {
if ($gameTemp._bcom_need_refresh) {$gameTemp._bcom_need_refresh = false;this.battle_commands_initialize()};
if (this.sel_time > 0) {this.update_wait_selection();return;};
_alias_mog_bcom_wcom_update.call(this);
if (BattleManager._actorIndex >= 0) {this.update_battle_commands()};
if (BattleManager.actor()) {
const X = SceneManager._scene._spriteset._actorSprites[BattleManager.actor().index()]._homeX - 50;
const Y = SceneManager._scene._spriteset._actorSprites[BattleManager.actor().index()]._homeY - 200;
this.move(X,Y,this.width, this.height);
}
};

Original thread: https://forums.rpgmakerweb.com/threads/moving-battle-command-window-next-to-actor.182522/