Jump to content
pognivet

how to get group id

Recommended Posts

need group id for paradrop script cant find it

 

tried setting it with "this setGroupId ["Delta","GroupColor1"]" in squad leaders init

 

tried "Delta" tried "Delta Black" tried "West Delta Black" tried every f'in combination i could think of and it still wont work

Share this post


Link to post
Share on other sites

your trying to set a new group id?

 

here's the correct syntax:

 

_group setGroupID ["Delta"];

 

someone should update the wiki.

Share this post


Link to post
Share on other sites

I tried the code you originally posted and it actually works in the unit's init field. Did you type it exactly as you have it posted above? With quotes?  If you did that would explain the issues. 

 

this setgroupid ["Delta", "GroupColor1"]

 

That works for me.

 

Unlike the later games, there's a set range for the first element of the array, in OFP/CWA. So you can only choose from the listed group IDs. Check them here, and here.

 

As is mentioned on those pages you can set up your own names using a stringtable.csv.

  • Like 1

Share this post


Link to post
Share on other sites

What will also work in the "Init" field is:

 

Delta = Group This

 

I use this all the time in missions.

  • Like 1

Share this post


Link to post
Share on other sites

As zulu1 and others say, you can also use this on the init field of the leader unit:

(group this) setgroupid ["Delta", "GroupColor1"];

There's also other tricks regarding group names and colors. You can change all their names by creating a stringtable.csv file inside your mission's folder. This is an example from one of my missions:

LANGUAGE,"English","French","Italian","Spanish","German","Comment"

STR_CFG_GRPNAMES_ALPHA,"CROW 1"
STR_CFG_GRPNAMES_BRAVO,"CROW 2"
STR_CFG_GRPNAMES_CHARLIE,"CROW 3"
STR_CFG_GRPNAMES_DELTA,"CROW 4"
STR_CFG_GRPNAMES_ECHO,"CROW 5"
STR_CFG_GRPNAMES_FOXTROT,"CROW 6"
STR_CFG_GRPNAMES_GOLF,"TOMAHAWK 1"
STR_CFG_GRPNAMES_HOTEL,"TOMAHAWK 2"
STR_CFG_GRPNAMES_INDIA,"1ST TANK PT"
STR_CFG_GRPNAMES_JULIET,"2NS TANK PT"
STR_CFG_GRPNAMES_KILO,"KILO"
STR_CFG_GRPNAMES_YANKEE,"YANKEE"
STR_CFG_GRPNAMES_ZULU,"ZULU"
STR_CFG_GRPNAMES_BUFFALO,"BUFFALO"
STR_CFG_GRPNAMES_CONVOY,"CONVOY"
STR_CFG_GRPNAMES_GUARDIAN,"GUARDIAN"
STR_CFG_GRPNAMES_NOVEMBER,"NOVEMBER"
STR_CFG_GRPNAMES_TWO,"TWO"
STR_CFG_GRPNAMES_THREE,"THREE"
STR_CFG_GRPNAMES_FOX,"FOX"

STR_CFG_GRPCOL_BLACK,"1"
STR_CFG_GRPCOL_RED,"2"
STR_CFG_GRPCOL_GREEN,"3"
STR_CFG_GRPCOL_BLUE,"4"
STR_CFG_GRPCOL_YELLOW,"5"
STR_CFG_GRPCOL_ORANGE,"6"
STR_CFG_GRPCOL_PINK,"FIVE"
STR_CFG_GRPCOL_SIX,"SIX"

STR_CFG_PAPABEAR,"HQ"
STR_CFG_FIREFLYBASE,"AIRBASE"
  • Like 1

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

×