With this script:
................................................................
#START
; get in position
"_x setpos [getpos boat1 select 0, getpos ap select 1,4]"foreach units ap
~1
"_x setPos getPos boat1"foreach units player
player action ["eject",vehicle player]
@player == vehicle player && typeof vehicle player != "COC_lar7SWM"
; get in as cargo
"_x moveincargo boat1"foreach units player
#END
......................................................................
- if i understand this right, the units is set to position 4 meters above the boat before movein. Is it the same or different with a setpos somewhere on land? my idea was to get the units out of the water first somehow, and then the game counts them as they were on land?. Anyway it works. Can it be so because the units no longer are counted as a vehicle(in coc_lar7)when they are above the water for the moment? anyway it works even if it they sort of "dropping" into the boat.
By the way, how can i get these two lines:
player action ["eject",vehicle player]
@player == vehicle player && typeof vehicle player != "COC_lar7SWM"
- to be active for all of the team instead for just the player?