Jump to content
Sign in to follow this  
JacobJ

Group players together and rank?

Recommended Posts

Hello all

I have 10 players that are grouped together with the group-connections in the editor. How do I make them all for example shoot at one target.

The problem is, that I can't group players together. Ive tried this:

grp1 = [man1, man2, man3]

grp1 doFire target1

When I do this, only the first guy shoots at target1. The other two guys do nothing. What have I done wrong?

Another question is:

I have this group of 10 players grouped together with the group-connections in the editor. How do I assign a groupname for this group and make it apear in the pre-game screen where you can select what player you want to be? How do I arrange how the players are listed on the list in the pre-game screen?

/Jacob

---------- Post added at 04:28 PM ---------- Previous post was at 04:26 PM ----------

Okay I tried to make a group more and now I have two different groups in the pre-game screen and I can see that the team-leaders are in the top of both, but why are they not in top, when there is only one team?

Share this post


Link to post
Share on other sites

Make groupname.

in init of leader of group in editor:

groupName = group this;

all shoot:

{_x doFire target1} foreach units groupName;

Share this post


Link to post
Share on other sites

Thank you very much, that worked just as it should!

---------- Post added at 09:44 AM ---------- Previous post was at 09:44 AM ----------

Do you know anything about the ranking in the pregame screen and how to alter the list so the highest rank is on top?

Share this post


Link to post
Share on other sites

I know that, but it doesnt affect the pregame menu. My teamleader is number two and a sniper is number 1 in that list.

Share this post


Link to post
Share on other sites

Does the team leader have a higher rank than the sniper?

Lieutenant > Corporal for example.

Edited by Lonestar

Share this post


Link to post
Share on other sites

yes he has and thats the wierd thing. Can I somehow force him up the list?

Share this post


Link to post
Share on other sites

It's weird, I just tested.

Whatever the order in which the units are placed, their rank defines their position in the units list.

Delete the group and start again.

Edit: Ok, just found it. The player (your unit) is always first in the list, no matter the rank.

Edited by Lonestar

Share this post


Link to post
Share on other sites

Okay, I will try to see if thats the problem. Thank you very much so far!

Share this post


Link to post
Share on other sites
I know that, but it doesnt affect the pregame menu. My teamleader is number two and a sniper is number 1 in that list.

You can change it manually by editing the mission.sqm. Both order of units individually in a squad, and the order of entire squads on the slot selection screen. However remember you have to make sure the order of 'class ItemXX' is intact, since that is what matters.

I.e. if you want the unit that currently is 'class Item2' to be first you have to manually edit his name to 'class Item0' (and of course make sure to rename the old class Item0 so you don't get duplicates).

The mission.sqm file can be a bit bulky to work with, but it is incredibly powerful when it comes to doing polishing.

Share this post


Link to post
Share on other sites
I know that, but it doesnt affect the pregame menu. My teamleader is number two and a sniper is number 1 in that list.

I thought you were talking about the briefing screen. :oops:

Easier solution is to copy the sniper unit, delete it and paste it again.

Unit order in the lobby is determined by the order in which you place them in the editor.

So if you want a unit to be first, make sure it is placed first in the editor.

If you choose the other solution, be careful. Editing mission.sqm can be pretty touchy.

Edited by Lonestar

Share this post


Link to post
Share on other sites

That did indeed work with the editing the mission file. Thank you very much and also thanks to you lonestar, that I didnt know and will remember in the future, so I dont have to mess around in the mission file.

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  

×