How to change left or right hand weapon ?

I want to change left and right hand weapons for an actor that dual wield via script call.
I saw the script call from the forum



$game_actors[actor_id].change_equip(n,$data_weapons[weapon_id])


when n, 0 = weapon, 1 = shield, 2 = headgear, 3 = body-gear (armor), 4 = accessory


but it can only change weapon in right hand (main hand)

Original thread: https://forums.rpgmakerweb.com/threads/how-to-change-left-or-right-hand-weapon.59446/