Forum Jump :

Author Message

Posts: 1189

Level: Member

Country: tr
Occupation: Computer Science student
Age: 22
In-game name: Wak

#183590 Posted at 2015-10-28 19:04        
As far as I get this, you need the group leader of a group at any time from any computer right?

You don't have to name any units in the editor, there are tons of other ways to refer to the group leader.
//Picked the first player from the list of all players.
_unit = allPlayers select 0;

//The group leader of that player has to be the leader we're looking for.
_leader = leader _unit;
//Because this is really small a COOP mission, there's only a single group with players.

//Now you can use "_leader" anywhere for chat
_leader groupChat "Let's roll out!";

Also don't think of locality as functions that run on the host computer and client computers. There are also dedicated servers and headless clients, it get's really weird at a point, you should read what Pierre posted (In that order too). Except "Multiplayer framework", that page has outdated a lot.

This post was edited by 654wak654 (2015-10-28 23:35, ago)

Sometimes I like to think as I started the whole "earplugs" thing.

W0lle: The only advice I can give you is: Do not try to understand BI. You will not succeed and it only makes your brain go boom. I would even go so far and say that not even they understand their own actions :-D.

#define getDamage getDammage

Tags: Group, Scripting, Talk