VBS2 references on this site are not maintained anymore, and may be outdated!
Please use the new, dedicated VBS2 Wiki instead:
Direct link to Fn_vbs_moveIn


Any notes that may have been added whilst this documentation was supported on this page, may be seen below.

Any discussions about this function may be seen on the forums.

Please do not add new notes or start new discussions here.


Posted on October 28, 2010

This function can be used to move units of various groups into a vehicle. When the third argument (position) is not used, the vehicle is filled in order and may copy the group of a non-driving unit as its own (in my case, the vehicle would assume the group of the first gunner). As a result, the vehicle may not move when it is assigned a new waypoint (this only works if the vehicle is in the same group as the driver). This can be solved by calling
[vehicle] joinSilent (group driver vehicle);
or by assigning the units a specific position in the vehicle.

Bottom Section