I have a group of four inf. In my init.sqs I "MoveInCargo" each inf to a different MG Jeep.
GroupGren = Group Gren1
{_x AddWeapon "NVGoggles"} ForEach Units GroupGren
GroupGren LockWP True
Gren1 MoveInCargo Jeep1
Gren2 MoveInCargo Jeep2
Gren3 MoveInCargo Jeep3
Gren4 MoveInCargo Jeep4
I have a detect trigger that launches the following script:
If (Alive Gren1 And Gren1 InVehicle Jeep1) Then {Gren1 LeaveVehicle Jeep1}
If (Alive Gren2 And Gren2 InVehicle Jeep2) Then {Gren2 LeaveVehicle Jeep2}
If (Alive Gren3 And Gren3 InVehicle Jeep3) Then {Gren3 LeaveVehicle Jeep3}
If (Alive Gren4 And Gren4 InVehicle Jeep4) Then {Gren4 LeaveVehicle Jeep4}
[Gren1, Gren2, Gren3, Gren4] Join GroupGren
GroupGren LockWP False
[GroupGren, 1] SetWPPos GetMarkerPos "MarkerCrashSite"
[GroupGren, 2] SetWPPos GetMarkerPos "MarkerCrashSite"
WP 1 is a S&D and WP2 is a cycle. I want the inf to hop out of the jeeps and rejoin each other and go on an endless S&D. When I fire on a jeep, presuming that throws my detect trigger, the inf get out of the jeep, run around for a second, and then get back into the jeep. What the hell am I doing wrong? I have also tried it without the "[Gren1, Gren2, Gren3, Gren4] Join GroupGren" line to no avail. In the debugger the inf are still listed as their own group.