Jump to content
Sign in to follow this  
Dead-Ćnd-Start

Groupies?

Recommended Posts

is it possible or can you assign a group of soilders a group name, so you can refer to them as a group

ie: Alphasquad moveincargo Pibber1

as opposed to putting in "this moveincargo Pibber1" 6 times in every unit or what ever?

Share this post


Link to post
Share on other sites

In the group leaders init field type:

group_1=group this; group_1 SetGroupID ["CallSign","Color"]

group_1 is the name of the group.

CallSign is the call sign to use for this group. Valid values are :

"Alpha", "Bravo", "Charlie", "Delta", "Echo", "Foxtrot", "Golf", "Hotel"

Color is the group color. Valid values are :

"GroupColor1" = Black

"GroupColor2" = Red

"GroupColor3" = Green

"GroupColor4" = Blue

"GroupColor5" = Yellow

"GroupColor6" = Orange

"GroupColor7" = Pink

Share this post


Link to post
Share on other sites

I know you can assign your squad's members with colours. Do you mean larger teams i.e multiple squads?

Share this post


Link to post
Share on other sites

For a short cut to assignascargo make a script called cargo.sqs from notepad and type:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">unit_1 AssignasCargo apc_1

unit_2 AssignasCargo apc_1

unit_3 AssignasCargo apc_1

unit_4 AssignasCargo apc_1

unit_5 AssignasCargo apc_1

unit_6 AssignasCargo apc_1<span id='postcolor'>

Its a matter of copy and paste, then call it up in the editor in an activation field:

[] exec "cargo.sqs"

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Shabadu @ Feb. 01 2002,11:53)</td></tr><tr><td id="QUOTE">I know you can assign your squad's members with colours. Do you mean larger teams i.e multiple squads?<span id='postcolor'>

The entire group will take the name given, ie:

group_1=group this; group_1 SetGroupID ["Alpha","Groupcolor1"]

will set group_1 to Alpha Black and the corresponding group number, alpha black 1 (leader), alpha black 2 etc...

You can assign any groups a name (valid callsigns only, alpha, bravo, charlie etc). Just by typing the command in the leaders init field of that group.

Share this post


Link to post
Share on other sites

To move a group into cargo w/o a script, try this in the init line of the group leader (or any of the group's units, actually):

"_x moveincargo Wtruck1" foreach units this

where Wtruck1 is the vehicle.

If you want everyone in cargo, but the group leader as the driver, try this in the init line of the group leader (or whoever is gonna be the driver):

this moveindriver Wtruck1; "_x moveincargo Wtruck1" foreach (units this)-[this]

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  

×