thanks James and Worldeater , i have the script like this but its not working. m1 is a man and he is in a vehicle.
HEIGHT: 0 WEIDTH: 0
ACTIVATION: West - Present
TYPE: NONE
CONDITION: this
ON ACTIVATION: [] exec "repair.sqs"
#loop
@ ((stryker distance m1 < 30) and (getDammage stryker != 0))
?! alive m1 : goto "exit"
~5
stryker setDamage 0
goto "loop"
#exit