Jump to content
Sign in to follow this  
das attorney

doMove and moveTo

Recommended Posts

There isn't much information on the difference between doMove and moveTo. From memory, the BIKI cites the main difference that moveTo is a low-level command. When I was making ARD addon, I found that there is a difference in practical terms for addon makers and mission makers.

If you are in charge of AI squadmates then doMove and moveTo do different things.

  • If your AI squadmates have been regrouped (you have issue the command REGROUP) then using doMove in a script on them will work. Issuing a moveTo command will not work.
  • If your AI squadmates are stopped (you have issue the command STOP) then using moveTo in a script on them will work. Issuing a doMove command will not work.

To overcome this possible problem then issue both orders for each move you want the unit to do.

{
    _unit doMove getPos player;
    _unit moveTo getPos player;
};

I hadn't seen anything on this in the forums before, so I wanted to post in case it helps anyone in the future.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×