er2.spawnConquestVehicleWithCrew 8
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 Type | Description |
|---|---|
| void | True 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
| Parameter | Type | Description |
|---|---|---|
| 1 | string | The vehicle to place, using the keys of the vehicle database. |
| 2 | void | Where to put it, in world coordinates. |
| 3 | void | Rotation in Euler degrees. |
| 4 | string | The faction the crew belongs to, for example Germany_axis. |
| 5 | string | The 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.
