Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Excerpt

Instruct a droid to move to a new location.

This is very similar to DORDER_SCOUT, however with DORDER_MOVE the droid is unlikely to attack enemy targets while its travelling.

Availability

Warzone 3.1 Beta 1 and above.

...

Code Block
themeEclipse
languagejavascript
titleMove a droid to where I first started out on this map
linenumberstrue
// move to specific location (assuming droid can get there)
orderDroidLoc(myDroid,DORDER_MOVE,startPositions[me].x,startPositions[me].y);
 
// move to specific object (assuming droid can get there)
orderDroidObj(myDroid,DORDER_MOVE,gameObject);

Notes

The droid's current order can be determined from it's .order property. For more infomration see Droid object.

It's not clear whether you can use this constant with orderDroidObj() (please comment if you try and let me know if it works).

...

This is very similar to DORDER_SCOUT, however with DORDER_MOVE the droid is unlikely to attack enemy targets while its travelling.

If the droid can't reach the location you've specified due to terrain obstacles, it won't move.

See also

  • droidCanReach() – determine if a droid can reach a specific location
  • orderDroidLoc() – order a droid to move to, or do something at, a specific location
  • orderDroidObj() – order droid to move to, or do something with, a specific game object
  • .order – list of all order constants
  • startPositions[] – an array of player starting positions