Using a Combo list for Resolution

I am using a Combo List for my resolution settings i have the 17 resolutions typed into the Combo list, but i dont know how to actually make them work when selected, so far i have done this.

^ Thats my attempt i custom typed in on each combo the name for the resolution then made a separate array with the command names in them, i then check the selected int against my res array and if the int’s are the same number than it executes the command in the res array which i made eg. r.setRes 1920x1080

109777-c2b3a0aee7cce5a283676808b7817318.png

^^ Thats the res array ( Only 2 have r.setRes, cause i dont wanna try it 17 times so its for testing)

^^ That is my Combo List

Does any one have a fix or and easier way for me to do this, thank you.

In your execute console command you can use an “append” node, and if I remember right, res don’t have have space character in it, like “r.SetRes 1920x1080”.

(Or I didn’t understand the question ><)

Hi so i added a append i take it, that it basically adds 2 strings to each other so it would add r.setRes to 1920x1080 = r.setRes1920x1080

but unfortunatly that didnt work either

Edit: i added a print string to see what was happening and i have promosing results the appen thing worked it turns out all i needed was the space after r.setRes

^ all i did was space these and it worked
Thank you for your help

Ok so I tried doing this. It works perfect when I hit play but it does nothing when I packaged it. It behaves like a combobox but res doesnt changes :frowning:

Any ideas? What am I doing wrong?

Thank you & best regards.

Hexa