Jump to content
BlacKnightBK

How can I sync up groups

Recommended Posts

Hello Ladies and gentlemen,

Guess what, i have another question.

So basically i am creating a mission in which an AI convoy will be on the move. That convoy contains multiple vehicles. Each vehicle will have  squad of enemies. My questions is how do I sync those squads together so they would not leave each other??

 

P.S. I am setting everything in an sqf file. That means no AIs or vehicles will be spawned using the eden editor. 

 

Thanks in advance

 

Share this post


Link to post
Share on other sites
2 hours ago, serena said:

Look at forceSpeed and  synchronizeWaypoint commands.

The force speed is a no go since in case of combat I do not want them to have limited speed, and i did not understand the sunchrnozeWaypoint. on the other hand though I figures i can just put them all in one squad and this way they will move together all the time

Share this post


Link to post
Share on other sites
3 minutes ago, ProfTournesol said:

 

Quelle ?

Tu es français? Il veulent qu ils sortent tous en même temps

Share this post


Link to post
Share on other sites
2 minutes ago, Nach said:

Tu es français? Il veulent qu ils sortent tous en même temps

Come on, mate, you must write in English here. And the code you've written makes no sense, it's half written in French.

Share this post


Link to post
Share on other sites
1 hour ago, ProfTournesol said:

Come on, mate, you must write in English here. And the code you've written makes no sense, it's half written in French.

oki exemple

 

_soldat1 createunit [_pos, _groupe1,"this moveInDriver _camion;"];
_soldat2 createunit [_pos, _groupe2,"this moveInCargo _camion;"];
_soldat3 createunit [_pos, _groupe2,"this moveInCargo _camion;"];
_soldat4 createunit [_pos, _groupe2,"this moveInCargo _camion;"];

 

_wp1 = _groupe1 addWaypoint [_targetpos, 1];
_wp1 setWaypointType "MOVE";
_wp1 setWaypointCombatMode "RED";
 


waitUntil { (currentWaypoint (_wp1 select 0)) > (_wp1 select 1) }; or make  a scriptwaynpoint into eden on activation >>

 

{
 unassignvehicle _x;
 moveout _x;
 } foreach (units _groupe2);

 

 

you can change by groupename and waypoint name into the editor for _group  && _wp1 delete the seven first write (lignes) of my script

write into initbox leader group >> yourgroupename = group this;

It juste a question oki I write English by;)) ty Google traduction ;)

 

 

Share this post


Link to post
Share on other sites
2 hours ago, Nach said:

oki exemple

 

_soldat1 createunit [_pos, _groupe1,"this moveInDriver _camion;"];
_soldat2 createunit [_pos, _groupe2,"this moveInCargo _camion;"];
_soldat3 createunit [_pos, _groupe2,"this moveInCargo _camion;"];
_soldat4 createunit [_pos, _groupe2,"this moveInCargo _camion;"];

 

_wp1 = _groupe1 addWaypoint [_targetpos, 1];
_wp1 setWaypointType "MOVE";
_wp1 setWaypointCombatMode "RED";
 


waitUntil { (currentWaypoint (_wp1 select 0)) > (_wp1 select 1) }; or make  a scriptwaynpoint into eden on activation >>

 

{
 unassignvehicle _x;
 moveout _x;
 } foreach (units _groupe2);

 

 

you can change by groupename and waypoint name into the editor for _group  && _wp1 delete the seven first write (lignes) of my script

write into initbox leader group >> yourgroupename = group this;

It juste a question oki I write English by;)) ty Google traduction ;)

 

 

I have no idea what you are trying to say mate

Share this post


Link to post
Share on other sites
1 hour ago, BlacKnightBK said:

I have no idea what you are trying to say mate

oki
into editor how many squad you have I start for three.
Into the editor create 3 groups .
There are a ledader by squad  double click on this init box . write
in first>>> alpha = group this;
2nde >>> bravo = group this;   
3rd   >>> charlie = groups this;
There are a selection of waypoint select and place a waypoint script double click on this
there are a initbox onactivation write this script
{unassignvehicle _x;moveout _x;} foreach (units alpha);
{unassignvehicle _x;moveout _x;} foreach (units bravo);
{unassignvehicle _x;moveout _x;} foreach (units charlie);

Share this post


Link to post
Share on other sites
12 minutes ago, Nach said:
oki
into editor how many squad you have I start for three.
Into the editor create 3 groups .
There are a ledader by squad  double click on this init box . write
in first>>> alpha = group this;
2nde >>> bravo = group this;   
3rd   >>> charlie = groups this;
There are a selection of waypoint select and place a waypoint script double click on this
there are a initbox onactivation write this script
{unassignvehicle _x;moveout _x;} foreach (units alpha);
{unassignvehicle _x;moveout _x;} foreach (units bravo);
{unassignvehicle _x;moveout _x;} foreach (units charlie);

ah i get you, now that is not however my problem, remember I am not using the editor to spawn the units, i am doing it all in sqf files

Share this post


Link to post
Share on other sites

can you send you script please I m french it s so difficult to explain

 

Share this post


Link to post
Share on other sites
Just now, Nach said:

can you send you script please I m frenh it s so difficult to explain

 

okay once i finish it i will. Should be done with it by tomorrow or day after at the maximum

Share this post


Link to post
Share on other sites
4 minutes ago, BlacKnightBK said:

okay once i finish it i will. Should be done with it by tomorrow or day after at the maximum

waitUntil { (currentWaypoint (_waypoint1 select 0)) > (_waypoint1 select 1) }; // it ' a trigger wait statement of the passage

 

{unassignvehicle _x;moveout _x;} foreach (units  _group); // you assign your group  to out

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

×