Weapon on top of actor sprite

In side view battle, MZ is displaying the weapon of the actor below the actor sprite, so it looks weird when the actor is wielding a long rifle type weapon, half of the gun is hidden behind the actor. Please help me find a way to display the weapon above the actor instead. I am using most Visustella plugins such as core, battle core, weapon animation and more. Thank you.
Show it as a picture in the action sequence.
Thanks so much for your answer. Could I trouble a little further please? I am experiencing the visual problem when using the standard "attack" command, for which I don't have an action sequence set. How should I proceed with setting the weapon as a picture in the action sequence as you suggested? Should my standard attack be connected to an action sequence common event? Please provide more details if possible, I'm a little confused still. Thank you
You could set an action sequence for the attack command, but this will affect all cases in which "attack" is used. I would personally just change the attack skill of the actor that is using the big gun:

1741921926726.png
Thanks so much! I'm also using the visustella weapon swap plugin, so each character of mine is using two weapons that they can swap between, including the big gun wielder. How should I set the attack skill if my actor has the possibility of wielding two different weapon types?
You can also make a plugin that move the weapon sprite 1 layers above the main sprite.
For example if the weapon type is 12 or 13.
You can edit the code or someone just make a full plugin with parameters.
JavaScript:
(function (alias) {
  Sprite_Actor.prototype.setupWeaponAnimation = function () {
    if ([12, 13].includes(this._actor.weaponImageId())) {
      this.addChildAt(this._weaponSprite, this.getChildIndex(this._mainSprite)+1);
    }
    alias.apply(this, arguments);
  };
})(Sprite_Actor.prototype.setupWeaponAnimation);
Thanks! I don't have experience with editing code or making plugins. Is there anyone able and willing to create it or guide me further in how to achieve it myself? I would be very grateful, it's quite annoying having the weapon graphic hiding behind the actor. Thanks for all the suggestions so far
I suggest you help yourself on that. It's honestly quite an ask to have someone make a guide for you!

Firstly, have you done the tutorials that come with RPG Maker? Secondly, have you looked at the tutorials on this site?

Recommended reading when making support requests.

Tutorial on plugins.
I understand perhaps I'm asking a lot. Thank you for your tolerance and understanding. I've been through many tutorials but have not found one providing a clear answer to my question about the weapon layer problem. I'm not sure which tutorials you are suggesting I review. Every problem I've encountered so far had other threads previously explaining and providing a complete solution. I have no JS experience and am intimated by the idea of creating my own plugin. After viewing the above solutions it seemed like the fix wouldn't be extremely complex.. so I'm just looking for a little bit more guidance.

If it's a matter of copying something into a JS file or making a small change to one of the game files then perhaps I would be able to solve it myself with just another push in the right direction? I know my lack of ability may be lead to frustrations for those willing to help me, but I mean no harm. Just want to learn from you all that I'm able and solve this little problem I've got. Thanks so much everyone!
I just edited my post and pointed you to a tutorial on plugins. Hope it helps!

If you want to have a more elaborate plugin, you can request one in the Plugin Requests forum. Otherwise, I think @utunnels plugin might be a good starting point.
Yeah, just copy the test and save it as whatevername.js in your plugins folder.
You only need to change the [12, 13] part. For the numbers you can check weapon types in your database settings. You can add your weapons separated by commas.
Thanks so much for the concise effective response! I have copied the data and made the changes to match my weapon type like you suggested. I placed it in my plugins folder and activated it but the weapons still appear behind the actor. I tried placing the plugin at the top of the plugins list, and then on the bottom, the result was the same. Do you mind looking over the .js I uploaded for errors I may have made? Thanks again!
Your code seems fine.
I wonder if you have other plugins that affect weapon animations.
I've only tested it on an empty project.
I am using dozens of visustella plugins to name a few.. battle core, weapon animation, weapon swap system and more. Perhaps there is incompatibility there. Thanks for checking it out.
Thanks so much! I'm also using the visustella weapon swap plugin, so each character of mine is using two weapons that they can swap between, including the big gun wielder. How should I set the attack skill if my actor has the possibility of wielding two different weapon types?

If you don't get the plugin working (VisuStella changes those functions), you can make your attack skill action sequence check if the user has certain weapon type and make conditional branches.

Like conditional script (replace X with weapon type Id):
BattleManager._subject.isWtypeEquipped(X)

Or you can just give your weapons the trait to change attack skill, instead of the actor.
The plugin idea wasn't working so I want to try this idea. How does changing the attack skill on the weapon make the weapon appear above the actor?
The plugin idea wasn't working so I want to try this idea. How does changing the attack skill on the weapon make the weapon appear above the actor?

I meant it ties with the idea in the first reply in this thread of showing a picture(s), instead of the standard weapon animation.
It looks like visustella rewrite their battle scene so weaponImageId is not used anymore.
So far the plugins have not worked for me, thank you for the attempts! Now I am using the idea to create a new attack skill for the weapon and create an action sequence for it and I have comprehended the process up until there. I'm not sure how to go about displaying the picture of the weapon through the action sequence, is there a certain plugin command I need to be looking for? Thanks for all the help so far!
Have you tried the one above the post? I made some adjustment for visustella.

Original thread: https://forums.rpgmakerweb.com/threads/weapon-on-top-of-actor-sprite.176198/