-- LUA Script - precede every function and global member wit h lowercase name of script + '_main' local gun_turret_assigned = {} local sin = math.sin local cos = math.cos function gun_turret_init(e) end function gun_turret_main(e) local tb = gun_turret_assigned[e] if tb == nil then gun_turret_assigned[e] = BaseAddTurret(e) return end local Ent = g_Entity[e] -- PromptLocal(e, Ent.x - tb.x .. "," .. Ent.y - tb.y .. "," .. Ent.z - tb.z) end