I have the following table:
self.keytable = {}
self.keytable.rotate_right = false
self.keytable.rotate_left = false
self.keytable.thrust = false
self.keytable.brake = false
self.keytable.fire = false
I want to iterate through the table and set each value to false, but I must be missing some nuance of Lua. I've tried the following without luck:
for k,v in ipairs(self.keytable) do
v = false
end
Thanks in advance for any help!