Dear Luca,
SAM's power tower models calculate an average attenuation loss using a polynomial equation described in the Heliostat Field Help topic with coefficients that you can change on the Heliostat Input page.
SAM's LK script allows you to set the value of SAM inputs, run an annual simulation (at a time step determined by the time step of the weather file), and read the value of outputs. It does not allow you to change the values of intermediate variables during the course of a simulation, or to run a simulation one time-step at a time.
The best I can suggest would be to determine the polynomial coefficients that best represent the average attenuation over the entire field for your application.
Best regards,
Paul.