Comrades in Arms Discussion Board
Setting Squad names in role assignment screen - Printable Version

+- Comrades in Arms Discussion Board (http://forum.ciahome.net)
+-- Forum: Comrades in Arms Life (http://forum.ciahome.net/forumdisplay.php?fid=3)
+--- Forum: Mission Making (http://forum.ciahome.net/forumdisplay.php?fid=8)
+--- Thread: Setting Squad names in role assignment screen (/showthread.php?tid=3225)



Setting Squad names in role assignment screen - treendy - 12-29-2015

Hello again... I have two more questions... they are not essential but will make things a bit nicer... will do as separate posts


Question one: When in role assignment, all my squads are Alpha... how do I set the names of my squads in the role assignment screen, so all four squads have there own name... or even Alpha, Bravo etc...


I have seen somewhere that you need to add non playble AIs and set condition of presence to zero until you run out of squads in a platoon so the next playable squad will be Bravo... is this the only way to do this?


Thanks again


Re: Setting Squad names in role assignment screen - Phantom - 12-29-2015

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


I think this might help you. I didn't manage to get mine working on the selection screen, but in game for switching units yes. I think it was because I put it in a trigger instead of init or something so it triggered after mission started.


Re: Setting Squad names in role assignment screen - Stagwine - 12-29-2015

If you mean how to set the groups ID's in lobby (role selection), you cannot (at least without huge unnecessary work). First group placed to map in editor is Alpha-1, second is Alpha-2 and thats it. However you don't need to worry about this anyway.

You can however add custom description to unit:

Place unit on map. Make it playable. Below init field is 'description' window. Type to this field 'Bravo lead' or something like that. Now that units role will be shown as 'Bravo lead' in lobby.

For group id to be referenced in sidechat and team roster: Use the method in Phantom's post to assign the groups unique call signs. I.e put this to leader's init field:

Code:
group this setGroupIDGlobal ["Bravo-1"];

Units in that group now references itself Bravo-1 in sideChat, etc.


Re: Setting Squad names in role assignment screen - treendy - 12-29-2015

I had a feeling that may be the case, thank you  Smile


Re: Setting Squad names in role assignment screen - Varanon - 12-30-2015

You won't get any group ID working on the assignment screen because bluntly put, what you do in terms of scripting will NOT reflect before the scripts actually run.

If I need some specific stuff, I usually use the Description field.

Also note, you can selet a callsign for the group (after slot screen) by synchronizing it with an appropriate group ID module, so no scripting needed


Re: Setting Squad names in role assignment screen - Outlawz7 - 12-30-2015

(12-30-2015, 12:38 AM)Varanon link Wrote: Also note, you can selet a callsign for the group (after slot screen) by synchronizing it with an appropriate group ID module, so no scripting needed


Last I used that it didn't work on dedicated, use the command itself like Phantom posted.


Re: Setting Squad names in role assignment screen - Alwarren - 12-30-2015

(12-30-2015, 01:52 AM)Outlawz7 link Wrote: Last I used that it didn't work on dedicated, use the command itself like Phantom posted.
BIS modules not working on dedicated? Can't be Smile


Re: Setting Squad names in role assignment screen - Varanon - 12-30-2015

Must have been broken recently then, since I used it once and it worked