Code: Select all
-- Zo only works on a door with a control on it
for i in pairs(c_objs) do
local v = c_objs[i]
local v_arch = dsb_find_arch(v)
if (exvar[v] and exvar[v].zoable) then
local zo_value = exvar[v].zoable
if (zo_value == true) then
got_button = true
else
local z_power = calc_fireball_damage(range, dmg)
if (z_power >= zo_value) then
got_button = true
end
end
break
end
if (v_arch.door_actuator) then
got_button = true
break
end
end
Please could you clarify what this is doing, and the correct way to make a door inst NOT zoable?