i would have done the
Code: Select all
local hor_b_d = true --dead? to prevent recursion, but still could be better prevention?
you actually do not have to declare variables in Lua like ie local defID if you are only going to use them much further down. Matter of taste I guess.