Overview
Instruct a VTOL to circle around a specific location.Availability
Requires dorder.js.
This isn't a standard feature of the JS API, however it's a constant used by the game engine so it's recognised by Warzone from at least 3.1 Beta 1 onwards.
Example
// circle droid around specific x,y co-ordinates if (isVTOL(droid)) orderDroidLoc(droid,DORDER_CIRCLE,x,y); // circle myVTOL around specific gameObject if (isVTOL(droid)) orderDroidObj(myVTOL,DORDER_CIRCLE,gameObject);
Notes
The droid's current order can be determined from it's .order
property. For more infomration see Droid object.
This order currently only works with VTOLs so use isVTOL() to check that you've got the right sort of droid.
Your VTOL will fly to the specified location and then start circling it. While moving to the specified location, and then whilst circling it, the VTOL will attack any enemy object it sees.
When applied to lots of VTOLs (50+ is most effective) at the same time, extreme pain will be delivered to the enemy!
See also
- DORDER_MOVE – move to a specific location, avoiding conflicts with the enemy
- DORDER_PATROL – patrol between two points, works with any droid
- DORDER_SCOUT – similar to DORDER_MOVE, but will engage enemies along the way
- Droids – quick reference of API features relating to droids
- isVTOL() – determine if a droid is a VTOL or not
- orderDroidLoc() – order a droid to do something at a specific location
- orderDroidObj() – order a droid to do something with a specific object