In my mission, the player have own squad and an assistant squad (ass. squad is lead by AI).
This assistant squad sometimes get in a Bradley and then get out etc...
Originally I used this code to get in the vehicle and the add WP to vehicle to Unload transport:
{_x assignasCargo brad1} forEach units grp1
(units grp1) orderGetIn true
_wp = bradgrp addWaypoint [getPos gl1, 0];
_wp showWaypoint "NEVER";
_wp setWaypointSpeed "NORMAL";
_wp setWaypointFormation "FILE";
_wp setWaypointType "TR UNLOAD";
(grp1 is the assistant squad, brad1 is the Bradley, bradgrp is the Bradley's group) and everything fine, the squad get in the bradley, brad1 go to gl1 and squad unload...
Then I add wp to the squad and lot of minutes after he arrived, I want to order back to the vehicle:
@not(leader grp1 in brad1)
~5
_wp = grp1 addWaypoint [getPos gl2, 0];
_wp showWaypoint "NEVER";
_wp setWaypointSpeed "NORMAL";
_wp setWaypointFormation "DIAMOND";
_wp setWaypointType "MOVE";
~3
@unitReady leader grp1
~5
{_x assignasCargo brad1} forEach units grp1
(units grp1) orderGetIn true
But nothing happened. The squad still stand where they are.
I tried to unassignVehicle the whole squad after they was unload from Brad, but doeasn't work.
Then I try and other way. I forgot orderGetIn, so I just add a simple GETIN waypoint to the squad:
_wp = grp1 addWaypoint [getPos brad1, 0];
_wp showWaypoint "NEVER";
_wp setWaypointSpeed "NORMAL";
_wp setWaypointFormation "DIAMOND";
_wp setWaypointType "GETIN";
The result is worst, because in that way, the squad didn't enter the vehicle at the begining neighter...
Please help! How can I reenter that squad to their vehicle?