Home   Help Search Login Register  

Author Topic: PlayMove and global effects ?  (Read 1811 times)

0 Members and 1 Guest are viewing this topic.

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
PlayMove and global effects ?
« on: 27 Mar 2009, 19:12:05 »
Hello all,

Does anyone know if the playMoves have to be executed on ALL computers to be seen, or is it enough to execute the playMove command on the computer where the unit is local ?

Looked all over and this is hard to test in MP if you are just one player on a dedi.

Questions:

If a player gets and performs an action with this script:
Code: [Select]
player playMove "AinvPknlMstpSlayWrflDnon_medic";
Will other players see it ?


If an AI unit in your group (where you are not the leader) gets and by order performs an action with this script:
Code: [Select]
_actionguy = _this select 0;
_actionguy playMove "AinvPknlMstpSlayWrflDnon_medic";
Will players that are not local to _actionguy see it ?

What if a player activates that AI units given action ?


To be safe I usually publicVariable the units name that has the action and run the script from a global trigger, but it would be smoother if that turned out to be unnecessary.


Laggy
« Last Edit: 27 Mar 2009, 19:16:47 by laggy »
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.

Offline Deadfast

  • Members
  • *
Re: PlayMove and global effects ?
« Reply #1 on: 27 Mar 2009, 20:03:23 »
AFAIK it does have to be run on every client's machine otherwise you just see the player (performing the animation) float around on other PC's.

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Re: PlayMove and global effects ?
« Reply #2 on: 27 Mar 2009, 23:41:10 »
Thx Deadfast,

That's what I suspected.
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.

Offline Killswitch

  • Members
  • *
  • Peace, cheese and ArmA
Re: PlayMove and global effects ?
« Reply #3 on: 26 Apr 2009, 15:55:36 »
Actually, it is sufficient to execute playMove only on the machine where the affected unit is local - the movement will be distributed to the other machines.

OTOH, the effect of the related switchMove command is local only, so that one needs to be run on all machines.
« Last Edit: 26 Apr 2009, 15:58:45 by Killswitch »

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Re: PlayMove and global effects ?
« Reply #4 on: 28 Apr 2009, 21:48:17 »
 :good: :D :-*
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.