Swap Characters for Battle Event

I have a "battle event" where i need to "remove" all party members before the battle and have one take they`re place in that battle and have them be returned to the party after said battle. Is there a easy way of doing this?
I cant use Change party member and add/remove the party members because you can pick your Character at the start of the game and there is no telling which Party members you already found at that point either.

Im pretty sure it can be done via script call just not sure where to find them and which to use
Code:
Script: this._savedActors = $gameParty._actors.clone()
        $gameParty._actors = []
Change Party Members (add your solo actor)
Battle Processing
Script: $gameParty._actors = this._savedActors.clone()
Thanks a ton @Shaz 😀
Cant test right now, but just so i got this right.
$gameParty._actors.clone() <-- this is where i put the actor ID`s
$gameParty._actors = [] <-- here i put a variable
and this part
Script: $gameParty._actors = this._savedActors.clone() <-- is where i again add the ID's

Am i correct?
No, you put it exactly as I put it.

The Change Party Members event command is where you put the actor's id.
Ah okay. Thanks!

Edit: So it is working, it swaps my party members with my set actor and replaces them after the battle
but.. they are invisible until i switch to a different map.

Original thread: https://forums.rpgmakerweb.com/threads/swap-characters-for-battle-event.117230/