Other great resources: Official JS API docs, Scripting Forum
Droid updates, chat and gateways
Here's the details from Per (original post):
Added:
* chat(target, message), for sending chat messages. chat may be ALL_PLAYERS or ALLIES or a specific player number
* orderDroid(droid, order), with new orders DORDER_STOP, DORDER_HOLD, DORDER_RTR, DORDER_RTB
* DORDER_FIRESUPPORT
* DORDER_REARM, and it may be used both with orderDroid() and orderDroidObj()
* enumGateways(), gives array of objects with x1, y1, x2, y2 properties (what are gateways?)
* .hasIndirect property for droids, if any weapons are indirect (eg artillery)Fixed .armed and .range properties. The .group and .armed properties are now null instead of undefined if not applicable.
All of this is for 3.2 only at the moment.
You'll notice that top of the list is the first signs of chat functionality in the API which is going to open up a really interesting new area for us JS scripters!
Some discrepancies have crept in to the JS API documentation for droid objects, more info here.
The changes are on my to-do list and should be reflected on this site within the next couple of days.