adds script function for arc entity