Many entities on GG has parentheses on their name such "Empty Barrel (Hazard)" or many others.
I've the "scankey" pic, but does not found any key.
I've tried with "GetScancode()" and even with "g_inkey" just in case. New build...
Working on getting user input via lua, and I've got it, the problem comes when user need to type something like example above, user can't type parentheses, and this is a great issue when you need make comparisons, since you need the exact name to work with.
Wonder if this maybe comes because the key combo needed, in parentheses case you would need to press "shift + /" keys. Therefore this is another issue I'm having.
Edit just for adding something I missed.
In standard LUA "io.read()" would work fine on this case, but it looks do not work that fine on GG.
With "io.read()" you can get any key pressed by the user as input, just put something like: answers = io.read() and you are done.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz
OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4
The author of this post has marked a post as an answer.
Go to answer