OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting Multiplayer => Topic started by: laggy on 01 Dec 2009, 19:26:19

Title: Weird joinSilent problem on dedicated server.
Post by: laggy on 01 Dec 2009, 19:26:19
Hi dear friends,

Two groups concisting of 5 men each (heroes1 and heroes2)

Simple radio trigger:

Code: [Select]
{[_x] joinSilent heroes1} forEach units heroes2
This works perfectly in SP and hosted MP.

On a dedi however, the last man in group heroes2 joins briefly (a flash of his icon appears for the leader, he would become nr 10) but then he unjoins.  ??? :blink: :confused: - Both the groups sit in boats (zodiacs).

Any ideas?

Laggy
Title: Re: Weird joinSilent problem on dedicated server.
Post by: nominesine on 02 Dec 2009, 16:29:36
Not a definite solution, but an idea:

Try to join the string of men to a unit instead of a group. i.e

Code: [Select]
{[_x] joinSilent leader heroes1} forEach units heroes2
instead of

Code: [Select]
{[_x] joinSilent heroes1} forEach units heroes2
I think that the vehicle and/or group may be the problem. If that doesn't work you may always try:

Code: [Select]
{[_x] joinSilent driver zodiacName} forEach units heroes2
or similar variations on the same theme.

EDIT: It's not so weird after all. join and joinSilent commands must be given where the adressed unit is local. Only then will the effect be seen globally on all computers. There's more info in the BI Wiki (http://community.bistudio.com/wiki/Image:arguments_local.gif)

EDIT 2: After some real testing. It seems that the join command works if the leader of heroes1 disembarks from the zodiac, before the command is given. Hence it must be a problem related to the vehicle. I don't know if it only applies to boats, or if every vehicle will cause the same problem. I suspect it's every vehicle.