Will try that now mate to see if it works.
Keep working on this ..... its making a LOT of people happy ! You just need to increase the amount of levels available in command - I know it's not an easy thing to do!
Will try that now mate to see if it works.
Keep working on this ..... its making a LOT of people happy ! You just need to increase the amount of levels available in command - I know it's not an easy thing to do!
fixed code for non-completing secOps mission after regroup/split:
cent_HCS_init.sqf:
cent_HCS_join.sqf:Code:sleep 0.1; _HCLeader=_this select 0; _HCGroupName=_this select 1; _HCLeader hcSetGroup [group _HCLeader]; (group _HCLeader) setGroupID [_HCGroupName select 0,"0"]; _HCGroups=HCAllGroups _HCLeader; for [{_x=0},{_x<(count _HCGroups)},{_x=_x+1}] do { _newGrp=_HCGroups select _x; _team=_HCGroupName select _x+1; _HCLeader hcSetGroup [_newGrp]; _newGrp setGroupID [_team,"0"]; }; _HCLeader addAction ["Regroup Platoon", "cent_HCS\cent_HCS_join.sqf", [_HCLeader,_HCGroups,_HCGroupName],6,false,true];
cent_HCS_split.sqf:Code:sleep 0.1; _index=_this select 2; _args=_this select 3; _Commander=_args select 0; _Squads=_args select 1; _HCGroupName=_args select 2; _SquadsBack=[]; {_SquadsBack=_SquadsBack+[(units _x)]} forEach _Squads; {_SquadsBack=_SquadsBack-[(units _x)]} forEach group_Commander; {units _x joinSilent (group _Commander)} forEach _Squads; _Commander removeAction _index; _Commander addAction ["Split Platoon", "cent_HCS\cent_HCS_split.sqf",[_Commander,_SquadsBack,_HCGroupName],6,false,true];
I hope that's correct. the bold part is what I think that actually fix itCode:sleep 0.1; _index=_this select 2; _args=_this select 3; _Commander=_args select 0; _Squads=_args select 1; _HCGroupName=_args select 2; for [{_x=0},{_x<(count _Squads)},{_x=_x+1}] do { private["_newUnit"]; _newGrp=_Squads select _x; if(_newGrp select 0 != _Commander) then{ _newGrp join grpNull; for [{_y=0},{_y<(count _newGrp)},{_y=_y+1}] do { if (alive (_newGrp select _y)) then {_newUnit=_newGrp select _y}; }; _newGrp=group _newUnit; _team=_HCGroupName select _x+1; _Commander hcSetGroup [_newGrp]; _newGrp setGroupID [_team,"0"]; }; }; _Commander removeAction _index; _Commander addAction ["Regroup Platoon", "cent_HCS\cent_HCS_join.sqf",[_Commander,HCAllGroups _Commander,_HCGroupName],6,false,true];
You're a star! Now just REGROUP COMPANY to go![]()
This is really good. but feels like only the beginning of what it could be. looking forward to where you take this great idea.
Let's not put too much hope shall we. Not that I dont want to aim for the sky, just that my initial idea was to set-up a platoon, now thatI have achieved it, I'm kinda lost.
I'll try to set-up a company in the future. Maybe the setup something like this:
The whole structure is COY cmder with pltn cmdr and squads. after regroup command the squads will form on the platoon, and thus we have several platoon size (~30men) groups. in HC mode command them as a 30man group. then split up, we can command the 3 squads. Just an idea.
How would you like to set-up company size HCS?
i was more meaning what you were trying with the fireteam colors etc. like keeping them despite splitting/recombining group. also would be great if we could use fireteam colours to determine size the groups split in to. like player can choose that red has 3 guys, blue (support in this case) has 6 and green (sniper team) has just 2.
thanks
@twisted
Sorry, I'm not quite sure I understand. I'll use current platoon HCS as an example. Initially we have 3 squads,then regroup into one. Do you mean assigning fireteam while when we have 3squads and those fireteams are in the squads? or assigning fireteams when the 3squads merge with you?
Surely the advantage of bringing all the troops together is that the commander can split them into the teams they want (perhaps by assigning them colours or some roles) then splitting them again to command them separately.
Is this possible?
sorry for being obtuse.
i mean using fireteam colours to adjust the size of the groups your company splits in to.
that way we can control the splits the company breaks in to on the fly.
going with your 3 squad example. isntead of having 3 squads on 3 men we can change it to 3 squads made of 4, 3 and 2 men by choosing 4 men for red colour (squad 1) 3 for blue (squad 2) and 2 men for green (squad 3).
that would be very useful. especially with larger companies.
edit - kremator is bang on target.
Last edited by twisted; Jul 23 2009 at 21:23.
^^ what he said. Amen Brother !
Fingers crossed that Mr Centipede can wiggle his 100 legs and work his magic !! What is missing from this jigsaw puzzle is that when I set a colour I want that to be a Fireteam when I split the platoon - to be able to setup tailored groups for every situation would be AMAZING !
EDIT: from more testing you can assign colours to your platoon (in joined mode) and when they split and then rejoined they have still those set colours.
Last edited by Kremator; Jul 23 2009 at 19:20.