ShadowRanger24 50 Posted July 5, 2018 Hi everyone, So I am currently trying to get a CPR animation loop working for a revive script on players. However I am experiencing some issues. I am trying to replicate the smooth looping of an Arma 3 CPR animation which works perfectly fine in the animation viewer, but once I use it on a player it just does not work. I will point out that I have tried several different methods of looping the animation including the use of the AnimDone event handler to no effect. Here is the script I am using for testing: private _animDuration = 9.09091; private _animLastTick = time; player playMoveNow "AinvPknlMstpSnonWnonDr_medic0"; while {true} do { if ((time - _animLastTick) > _animDuration) then { _animLastTick = time; player playMoveNow "AinvPknlMstpSnonWnonDr_medic0"; }; }; Any help would be much appreciated. Thanks in advance. Share this post Link to post Share on other sites
HazJ 1289 Posted July 5, 2018 If this is possible, it may be better using for loop with step. I'll take a look into this now and update if I make any progress. You should have sleep with while loop as well. EDIT: [] spawn { for "_i" from 0 to 1 step 0 do { player playMoveNow "AinvPknlMstpSnonWnonDnon_medic1"; }; }; AinvPknlMstpSnonWnonDnon_medic0 AinvPknlMstpSnonWnonDnon_medic0S AinvPknlMstpSnonWnonDnon_medic1 AinvPknlMstpSnonWnonDnon_medic2 AinvPknlMstpSnonWnonDnon_medic3 AinvPknlMstpSnonWnonDnon_medic4 AinvPknlMstpSnonWnonDnon_medic5 AinvPknlMstpSnonWnonDnon_medicEnd etc Check Animations Viewer in-game. AinvPknlMstpSnonWnonDnon_medic5 This one is the CPR I think. You'll need to go back and fourth between another animation but it is possible. Share this post Link to post Share on other sites
bendy303 4 Posted December 27, 2023 old topic, but for anyone who is looking, the proper animation for CPR is UnconsciousReviveMedic_B cheers PS edit. Actially AinvPknlMstpSnonWnonDr_medic0 is better after all. Share this post Link to post Share on other sites