Script command to hide enemy?

I'm looking for a way to hide an enemy mid-battle by turning it invisible in order to bring it back later with the "Enemy Appear" command. Does a script call for this exist? Or is the best way to either get a plugin or just knockout the enemy and revive it instead?
Sure! If you Google "RPG Maker MV script hide enemy," you'll find a few threads about it - the function is $gameTroop.members()[index].hide() where index is the order you added the enemies into the troop, starting at 0.
I see. That works perfectly.
Sure! If you Google "RPG Maker MV script hide enemy," you'll find a few threads about it - the function is $gameTroop.members()[index].hide where index is the order you added the enemies into the troop, starting at 0.

OK, lol. I was testing it on the wrong thing and got confused with the result. Trying it out in this encounter right now, and it doesn't seem to be working. I have an encounter with 2 enemies, and replacing [index] with either [0] or [1] doesn't seem to do anything. All plugins are turned off.
I have an encounter with 2 enemies, and replacing [index] with either [0] or [1] doesn't seem to do anything.
Because it's a function. Put () after hide.
I even said it was a function and then didn't type the parentheses in my original post. Sigh.

Original thread: https://forums.rpgmakerweb.com/threads/script-command-to-hide-enemy.139939/