Overview
Instruct a droid to retreat to a pre-defined retreat point. Read docs before using!Availability
Warzone 3.1 Beta 1 and above.
Example
Attack an enemy object
orderDroidObj(myDroid,DORDER_RETREAT,enemyObject);
Notes
The droid's current order can be determined from it's .order
property. For more infomration see Droid object.
This order likely won't do what you expect it to do. As Per explained, DORDER_RETREAT will make your droid go to a pre-defined retreat point - something that seems to be specific to campaign missions. I currently have no idea how that point is defined, perhaps through map labels?
What you probably want to use is DORDER_RTB (return to base), DORDER_RTR (return to repair) or DORDER_REARM (return to rearming pad - VTOLs only). You could even use DORDER_MOVE in conjunction with your start position.
See also
- Droids – quick reference of API features relating to droids
- DORDER_REARM – make a VTOL droid return to a rearming pad
- DORDER_RTB – make a droid return to base
- DORDER_RTR – make a droid return to a repair station
- orderDroidObj() – tell a droid to do something to something