How do I exchange certain indexes between two arrays?

#So I have two arrays
@editable
ZombieManagerEnabled : []creature_manager_device = array {}
@editable
ZombieManagerDisabled : []creature_manager_device = array {}
#The ZombieManagerEnabled array has 1 index and the ZombieManagerDisabled array has 14
#What I want to do is to exchange the 1 index in the ZombieManagerEnabled array for 1
index in the ZombieManagerDisabled array but I don’t know how

Hello, why not use a map instead of two arrays ?

    @editable
    CreatureManagers : []creature_manager_device = array{}

    var CreatureManagerState : [int]logic = map{} # you store the state here (true or false)

The int index would match the array indexes of your CreatureManagers, considering that this array don’t change over time