Zrobiłem prosty skrypt na to aby jednostka salutowała,tylko ona salutuje przez kilka sec i opuszcza łape.A ja chcę aby ta jednostka cały czas salutowała...
Jak to zrobić?

Kod: Zaznacz cały
_this = _this select 0;
_this setBehaviour "SAFE";
_this disableAI "ANIM";
_this action ["salute",_this];
sleep 5;
waitUntil{
if(animationState _this != "amovpsitmstpsraswrfldnon")then{
sleep 8+random(3);
_this action ["salute",_this];
waitUntil{animationState _this == "amovpsitmstpsraswrfldnon"}
};
behaviour _this != "SAFE";
};
_this enableAI "ANIM";