#action3
; Passenger loading section
hint "LMOne loading"
_ps = [p1, p2, p3, p4, p5, p6]
_nps = count _ps
;Here we'll store passengers actively mounting each time
_loading = []
_i = 0
#check_p
_p = _ps select _i
;If passenger is in any vehicle, or distance to bus > 10, or not alive, we dont care about him
?(vehicle _p != _p) || ((_p distance _bus) > 30) || (!alive _p): goto "skipmount"
_p assignAsCargo _bus
~1
[_p] ordergetin true
~1
_loading = _loading + [_p]
#skipmount
_i = _i + 1
?_ i < _nps:goto "check_p"
_tomount = count _loading
?_tomount == 0: goto "returnactions"
~1
@({unitReady _x} count _loading) == _tomount
goto "returnactions"
About your second question:
_buswps = [[getPos (object 57852), 0, 0], [getPos (object 57853), 0, 0], [getPos (object 26140), 0, 0], [getPos (object 6369), 0, 0]]
_buswps = _buswps + [[getMarkerPos "Lipany2", 5, 2], [getMarkerPos "Lipany1", 5, 3], [getPos (object 173563), 0, 0]]
_buswps = _buswps + [[getPos (object 6366), 0, 0], [getPos (object 5285), 0, 0], [getPos (object 5295), 0, 0]]
...
is that what you mean with single lines?