Difference between revisions of "doMove"

From Bohemia Interactive Community
Jump to navigation Jump to search
(More info about limitations)
Line 27: Line 27:
| [[commandMove]], [[setDestination]], [[moveTo]], [[move]], [[addWaypoint]], [[fn_vbs_doMoveEx_(VBS2)|fn_vbs_doMoveEx]] |= See also
| [[commandMove]], [[setDestination]], [[moveTo]], [[move]], [[addWaypoint]], [[fn_vbs_doMoveEx_(VBS2)|fn_vbs_doMoveEx]], [[setExactMovementMode_(VBS2)|setExactMovementMode (VBS2)]], [[getExactMovement_(VBS2)|getExactMovement (VBS2)]] |= See also

Revision as of 13:40, 11 September 2009



Posted on February 9, 2008
If doMove is to be used in conjunction with waypoint behavior commands (e.g. setSpeedMode), then those have to be issued after the move command to have an effect. Otherwise the move will be done with the default settings.
Posted on February 3, 2009
General Barron
If a unit is part of a group, and is not the leader, the unit will fall back into formation soon after the domove is completed. This does not happen for units that are in a group alone (because they are their own leader). There is no single command to get a unit to move to a position and stay there. The best way to do this is to issue a domove, then wait for the unit to reach his destination, then disable his movement AI. VBS2 users can use the fn_vbs_doMoveEx function.

Bottom Section