Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Bnae

switchMove & playMove & playMoveNow

Recommended Posts

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

SwitchMove effects are local; best solution is to use playMove, IMO.

Share this post


Link to post
Share on other sites

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

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.
  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×