fn vbs moveIn (VBS2)
Jump to navigation Jump to search
- 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.