The action animation is only played when called on to do so, IE: a multi manager triggering the script.
To get your flashlight animation to repeat, you need to have a looping multi manager to trigger it every second or so.
for example, lets say your multi manager is called script_mm, and your script is called script1
multi_manager (script_mm) flags: multithreaded
key: script1
value: 1
key script_mm
value: 1.5
there is your looping multimanager, every time it triggers the script, the entity will perform the flashlight animation, effectivley repeating it.
note that i came up the times in the example mm above off the top of my head, experiment with the timing to see which makes the animation look best.
Hope it helps.