er2.spawnConquestVehicleWithCrew 8

Available from Easy Red 2 2.1.1

The same as spawnConquestVehicle, but the vehicle comes with an AI crew already aboard. This is how you leave a manned anti-tank gun or a bunker MG on the field.The squad may be one from the squads archive or a custom squad defined in the mission; the crew is cut down to the seats the vehicle actually has. Master client only, like spawnConquestVehicle: vehicle and soldiers are ordinary networked objects and reach everyone else on their own.


Return value

Return TypeDescription
voidTrue if the request was accepted. Creation is asynchronous. False if the id is unknown, is not a vehicle, the faction or squad is empty, or you are not the master client.

Parameters

ParameterTypeDescription
1stringThe vehicle to place, using the keys of the vehicle database.
2voidWhere to put it, in world coordinates.
3voidRotation in Euler degrees.
4stringThe faction the crew belongs to, for example Germany_axis.
5stringThe squad the crew is taken from: an id from the squads archive, or the id of a custom squad defined in this mission. It is resized to the seats the vehicle has.

Examples

No examples available.


Back to Scripting API