Other great resources: Official JS API docs, Scripting Forum
eventTransporterLanded()
Triggered when a transporter lands...
Syntax
function eventTransporterLanded(transport) {
// do stuff
}Parameters
Parameter | Type | Mandatory | Notes | Game version |
|---|---|---|---|---|
transport | The transporter that just landed. | 3.2 |
Return value
Warzone does not process the return value of this event.
Notes
You can use enumCargo() to get a list of droids on the transport.
Example
function eventTransporterLanded(transport) {
enumCargo(transport).forEach( function disembark(droid) {
orderDroid(droid, DORDER_DISEMBARK);
}
}