While Loop not working

Stuff and Junk

Well-Known Member
ok this is really getting to me. I have made this work already but somehow my freaking file got reverted to a old version, go figure. Anyway this is what i have
Code:
While {alive player} do {
 
variables here
 
     if (_hasRadio) then {
   
        _counter = 0;
        while {(_hasRadio) and (_counter < 10000} do {
 
             some stuff here
 
            _counter = _counter + 1;
            waitUntil {!(_hasRadio)};
 
       };
   }else {
 
     };
};
its run from the init. it runs fine jst wont loop even if i use wile{true} do {}; anymore. Am i crazy? lol, im pretty sure this is what i did to make it work already but no luck.
 
Back
Top