Hide an enemy when they attack

Is it possible to hide an enemy's sprite when they use a specific skill? I know you can use the "hide target" option the animations tab but that only hides the enemy when they use a skill on themselves. Can I hide the enemy when its attack scopes a party member?
It depends on what exactly you want - if you want to make the player unable to target that enemy, you'll need a script.
If you want to make the battler invisible, you can do that by transforming the enemy into one that has a transparent battler.
It depends on what exactly you want - if you want to make the player unable to target that enemy, you'll need a script.
If you want to make the battler invisible, you can do that by transforming the enemy into one that has a transparent battler.
I want the enemy to only go transparent while it's using the skill. Basically, I'm using their battle sprite as an animation sprite as well to make it look like it's moving while it attacks. After the skill is over I want the enemy's graphic to show up again.
I'm not able to test this, but have you tried using a common event called up by a skill?
The structure would be
Transform enemy to transparent using the suggestion by Andar
Forced action to do whatever you want (probably have to call up a separate skill that does the damage)
Transform enemy back to its normal sprite.

Original thread: https://forums.rpgmakerweb.com/threads/hide-an-enemy-when-they-attack.74790/