Just did it on the other way though.
I made 2 dummies *on far side of the map where they will attack each other, then i subtracted the maximum health of the first dummy to his new damaged health, then it will loop everytime they will attack each other
Anyway, thanks for your response
Custom Damage Detection System
Events
Unit - DamageDetectSystem 0009 <gen> Is attacked
Conditions
Actions
Set Game_SurvWpnDamage = (Integer((125.00 - (Life of DamageDetectSystem 0009 <gen>))))
Unit - Set life of DamageDetectSystem 0049 <gen> to 100.00%
Unit - Set life of DamageDetectSystem 0009 <gen> to 100.00%
<span style="font-size: 9px">(125 is the full health of the dummy)
(DamageDetectSystem is a dummy unit)</span>