er2.spawnConquestVehicle 6
Puts an empty vehicle in the world and leaves it there. Made for the guns and machine guns a battle is fought around: it is not a spawn point, so nobody is born in it and any unit that walks up to it can man it normally.Unlike the props, this one is a networked object: in multiplayer only the master client does anything and everyone else receives it automatically. On a client the call returns false and nothing happens, which is correct and not an error to guard against.
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, 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. On a gun this is the direction it faces, so it is worth aiming it at where the fighting will be. |
Examples
No examples available.
