Arrays (list button activate List props)

Thank you for your help @Starkiller9229
worked perfectly :tada:

Now I’m trying to do it with a logical array but I don’t know why I can’t change its value in the same index

 @editable var RotateList : []logic = array{}

     OnButton(Agent : agent, ButtonIndex : int) : void=
         if (RotateList[ButtonIndex]):
             if (Prop := ItemList[ButtonIndex]):
                 spawn:
                     SmoothRotate(Prop)
             set RotateList[ButtonIndex] = false
         else:
             set RotateList[ButtonIndex] = true

How can I change the value of a logical array?

1 Like