er2.spawnConquestVehicle 6

Available from Easy Red 2 2.1.1

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 TypeDescription
voidTrue 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

ParameterTypeDescription
1stringThe vehicle to place, using the keys of the vehicle database.
2voidWhere to put it, in world coordinates.
3voidRotation 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.


Back to Scripting API