fn vbs moveIn (VBS2)

From Bohemia Interactive Community
Jump to navigation Jump to search
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

Notes

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 talk page or the forums.

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

Notes

Posted on October 28, 2010
Tijmenjoppe
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