Jump to content
Sign in to follow this  
galzohar

setGroupID in multiplayer?

Recommended Posts

https://community.bistudio.com/wiki/setGroupId

To save myself some nasty multiplayer testing, does anyone know if setting this is synchronized on all machines (in which case I still need to know which machine to run it on), or if I need to run this on every machine for the command to take effect?

Thanks.

Share this post


Link to post
Share on other sites

Global arguments and local effect, I've updated the wiki info!

Share this post


Link to post
Share on other sites

I've actually been fiddling with this recently and the custom id does show on dedi with me connected as client.. but I guess the real test is for >1 players. Also note the colour parameter does nothing :p

Share this post


Link to post
Share on other sites

Are you running the command in init line (= runs for all machines, but not always due to some bugs with init lines in some situations), or on an if (isServer) then {...} block?

Share this post


Link to post
Share on other sites

I am running it in group leader's init line... but I would think the other way would work as well as long as you name the group first?

Share this post


Link to post
Share on other sites

If there's no leader it won't run, set the same init for all grouped units

Share this post


Link to post
Share on other sites

How could there not be a leader? I thought even individual units were considered 'groups'? So a one-man group is still a group and has a leader (the one man)? Or have I not had enough coffee yet today?

Share this post


Link to post
Share on other sites

You're correct on that one, but I was talking about if the group leader unit placed in the editor was not selected during role selection when the mission started.

To clarify, use:

(group this) setGroupID ["ALPHA-1"];

for each unit in the squad

ARMA will still assign a number after the group ID IIRC.

Share this post


Link to post
Share on other sites

ok that makes sense now :p Thanks that is good to know.

So in your example it should be displayed as ALPHA-1-1 correct? (assuming we had selected the leader)

Share this post


Link to post
Share on other sites

Yes, for example

(group this) setGroupID ["ALPHA-ACTUAL"];

Woud look like:

ALPHA-ACTUAL 1 (Cuel) : "Hello"

In sidechat.

Share this post


Link to post
Share on other sites
Global arguments and local effect, I've updated the wiki info!

So the setGroupID needs to be applied on all connected clients including the server. If you have 50 players (30 groups) and you run below script on/after mission init this will create a lot of net traffic. Is there a better way?

Ps. I do not want to set the groupID in the units init in the editor.

{[[myGroup,["myCallSign"]],'setGroupID',true,true] call BIS_FNC_MP;} forEach Units myGroup;

Edited by whiztler

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×