er2.setSpawnVehicleDestination 5
Tells the vehicle of a spawn where to carry the squad before dropping it. Applies to anything the engine treats as an automatic transport: landing craft, gliders, cargo planes. The spawn is also turned to face that destination, so the vehicle appears pointing along its route instead of due north.Without a destination an automatic transport is created and simply sits there.
Return value
| Return Type | Description |
|---|---|
| void | This function doesn't return anything |
Parameters
| Parameter | Type | Description |
|---|---|---|
| 1 | Number | The index returned by createSpawn. |
| 2 | void | Where the transport unloads. Pick dry land: a landing craft aiming at open water never lets anyone off. |
Examples
No examples available.
