Moves a unit and prevents them from returning to formation after reaching their destination. It is used as a replacement for the doMove command, when you do not want the unit to return to the formation after completing the move.
|Syntax:||[object, destination, stop_in_combat, speed] call fn_vbs_doMoveEx|
When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Category VBS Scripting Functions.
Give unit1 a movement order:
[unit1, getPos car] call fn_vbs_doMoveEx
Cancel movement order and return to formation:
[unit1, nil] call fn_vbs_doMoveEx