Other great resources: Official JS API docs, Scripting Forum

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Overview

Instruct a droid to "scout" to a new location.

Availability

Warzone 3.1 Beta 1 and above.

Example

Move a droid to where I first started out on this map
// scout to specific location (assuming droid can get there)
orderDroidLoc(myDroid,DORDER_SCOUT,startPositions[me].x,startPositions[me].y);
 
// scout to specific object (assuming droid can get there)
orderDroidObj(myDroid,DORDER_SCOUT,gameObject);

Notes

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

This is very similar to DORDER_MOVE, however with DORDER_SCOUT the droid will also attack nearby 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
  • No labels