Bnae 1427 Posted March 16, 2016 Hello, I'm trying to make cursorTarget play animation in MP. The player who is executing the function is playing the animation without any problems and seems like the target it also trying to do something. But the something is just glitching and stretching all around the place. I tried with almost 20 different animations to make sure that the actual animation it self is not bad. Using systemChat to see where it wen't wrong _target = cursortarget; if ((player distance _target)<2) then { systemChat "Distance check"; if (isPlayer _target) then { systemChat "It is player"; player switchmove "AwopPercMstpSgthWpstDnon_Part4"; _target switchmove "Acts_InjuredLookingRifle01"; }else{ systemChat "It was not a player"}; }; I would be extremely glad if somebody could explain this to me. Share this post Link to post Share on other sites
haleks 7271 Posted March 16, 2016 SwitchMove effects are local; best solution is to use playMove, IMO. Share this post Link to post Share on other sites
Bnae 1427 Posted March 16, 2016 SwitchMove effects are local; best solution is to use playMove, IMO. Hello haleks. I tried all the animations with switchMove & playMove & playMoveNow and only command that did something was switchMove. If it is local command, maybe i have to remoteExec the animation from the target. Share this post Link to post Share on other sites
haleks 7271 Posted March 16, 2016 Yeah, I didn't realize that target was another player.^^ In that case the command probably needs to happen on his machine : [_target, "Acts_InjuredLookingRifle01"] remoteExec ["playMove", _target]; Try switchMove if it doesn't work : [_target, "Acts_InjuredLookingRifle01"] remoteExec ["switchMove", 0]; The above plays the anim on all machines, to make sure everyone sees it. 1 1 Share this post Link to post Share on other sites
Bnae 1427 Posted March 16, 2016 Yeah, I didn't realize that target was another player.^^ In that case the command probably needs to happen on his machine : [_target, "Acts_InjuredLookingRifle01"] remoteExec ["playMove", _target]; Try switchMove if it doesn't work : [_target, "Acts_InjuredLookingRifle01"] remoteExec ["switchMove", 0]; The above plays the anim on all machines, to make sure everyone sees it. Work like a charm! Thank you haleks Share this post Link to post Share on other sites