OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: laggy on 27 Mar 2009, 19:12:05

Title: PlayMove and global effects ?
Post by: laggy 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
Title: Re: PlayMove and global effects ?
Post by: Deadfast 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.
Title: Re: PlayMove and global effects ?
Post by: laggy on 27 Mar 2009, 23:41:10
Thx Deadfast,

That's what I suspected.
Title: Re: PlayMove and global effects ?
Post by: Killswitch on 26 Apr 2009, 15:55:36
Actually, it is sufficient to execute playMove (http://community.bistudio.com/wiki/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 (http://community.bistudio.com/wiki/switchMove) command is local only, so that one needs to be run on all machines.
Title: Re: PlayMove and global effects ?
Post by: laggy on 28 Apr 2009, 21:48:17
 :good: :D :-*