Quote:
Originally Posted by azalty
index.CameraShakeChance or FPlayerChances[client][index].CameraShakeChance ?
I'm pretty confused about your code. I don't really get it, you pass an enum struct as a parameter called index (weird name) yet you access it with FPlayerChances[client][index] like wtf.
And old syntax too :'(
|
No, that not what I want I had an old script that was working before which I want to refactor, but I got this warning which I forgot the description of, something like index based enum was removed.
The code in the example is not the initial code as it was work in progress of the refactoring so it may be lot of confusion.
I want to access the property of the enum by flag or string using "reflection", is that possible? Otherwise, I was thinking of refactor the data structure to StringMap.