I make a LUA script for my game with the Logitech Gaming Software but I struggle with one thing.
I just want to define the variable "var" BEFORE the arrays.
I have more than 50 arrays so I'm tired of scrolling down everytime I want to change this variable..
How can I do it ?
Here is a simplified version of my script.
It works :
array1 = { "TRUE", 5, 4, 5, 5 }
array2 = { "FALSE", 6, 3, 8, 5 }
array3 = { "FALSE", 3, 2, 5, 3 }
var = array1
OutputLogMessage(var[1])
It doesn't work :
var = array1
array1 = { "TRUE", 5, 4, 5, 5 }
array2 = { "FALSE", 6, 3, 8, 5 }
array3 = { "FALSE", 3, 2, 5, 3 }
OutputLogMessage(var[1])