-- LUA Script - precede every function and global member wit h lowercase name of script + '_main' g_ENTITY_NAME_LIST = {} local turret_radar_assigned = {} function turret_radar_dual_init_name(e, name) g_ENTITY_NAME_LIST[e] = name end function turret_radar_dual_main(e) local tb = turret_radar_assigned[e] if tb == nil then local radarName = g_ENTITY_NAME_LIST[e] if radarName == nil then return end if radarName == 'Satellite Dish' then if BaseDualAddRadar ~= nil then turret_radar_assigned[e] = BaseDualAddRadar(e) return else PromptLocal(e, "No Base entity found") end elseif radarName == 'Damaged Satellite Dish' then if BaseDualAddDamagedRadar ~= nil then turret_radar_assigned[e] = BaseDualAddDamagedRadar(e) Hide(e) return else PromptLocal(e, "No Base entity found") end end end end