"_x moveinCargo boat" forEach units ap
will not work in multiplayer, in case the soldier, called: ap
has become disabled in the player selection screen, as
he doesn't exist anymore.
Therefore it's always good to do such stuff seperately for
each unit inside it's init field.
this moveinCargo boat
in each soldier's init field will ensure that everyone is onboard
basically, if you are using the script you've posted above
in your init.sqs, and if the soldier ap does exist (not disabled),
and you did execute it the right way, it should work aswell.
But never forget the ability to disable unselected soldiers in
the player selection menu.
As i said: this moveinCargo boat
in the init field of each soldier will work for sure
(except the boat has sunk before) ;D
~S~ CD