am running thse code of nss console and not directly into files yet so that i veryify the code works before i start to add them in sqf files.
[] spawn { while{true} do { { if(!isPlayer _x && side _x != playerSide && _x animationState != "AmovPercMstpSnonWnonDnon_exerciseKata") then { _x playMove "AmovPercMstpSnonWnonDnon_exerciseKata"; }; } forEach allUnits; sleep 1; }; };
this code dont work , no error , no effect is taken soldiers are not doing karate.
if i execute this code it work but animation is only 1 time and i have to click , i want it to loop , so i tried your code but its not doing anything.
if(!isPlayer _x && side _x != playerSide && _x animationState != "AmovPercMstpSnonWnonDnon_exerciseKata") then { _x playMove "AmovPercMstpSnonWnonDnon_exerciseKata"; }; } forEach allUnits;