er2.setSpawnVehicleDestination 5

Available from Easy Red 2 2.1.1

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 TypeDescription
voidThis function doesn't return anything

Parameters

ParameterTypeDescription
1NumberThe index returned by createSpawn.
2voidWhere the transport unloads. Pick dry land: a landing craft aiming at open water never lets anyone off.

Examples

No examples available.


Back to Scripting API