Scripting help needed. Would this be possible?
Everyone knows you can do things like:
player addweapon "NVGoggles";
But would it be possible to, using the Cheat Engine at main menu then closing method, do something like this?
inv = playerInventory player; if(!inv.hasweapon("NVGoggles") && inv.hasFreeSlot()) player addweapon "NVGoggles";
This would be a method to get infinite ammo without overriding other slots in your inventory.
That looks a lot like LUA syntax there :P
On Topic: If it follows the correct syntax, which, it being a guess, it probably doesn't, then yes it'd work. You can probably google for the correct 'for statements' syntax for Arma II scripting.
Never programmed with LUA.
This was closer to C++/Java to me, which are my core programming languages.
Yeah I'm trying to write something and awaiting a test in my other thread, or even just code verification.