Introduced in

Version:1.00

Description

Description: Sets the respawn parameters for a specific vehicle (MP only).

Requires the respawn option in Respawn to be set to 3, and a marker to define the respawn area. The old, destroyed vehicle will stay at its original location, and a new vehicle will be created at a random location within the marker area.
The marker has to have a specific name, to designate the respawn location for the different sides:

  • west: "respawn_vehicle_west"
  • east: "respawn_vehicle_east"
  • resistance: "respawn_vehicle_guerilla"
  • civilian: "respawn_vehicle_civilian"

Syntax

Syntax: vehicle respawnVehicle [delay, count]
Parameters:
  • vehicle: Object - Vehicle to respawn
  • delay: Number. - Delay (in sec) until vehicle is respawned. Default: -1 (use respawnDelay from Description)
  • count: Number. Maximum number of respawns. (Optional, default: 0 - unlimited)
Return Value: Nothing

Examples

Examples: 'car1' will respawn after 5 seconds (and no more than 3 times):
car1 respawnVehicle [5, 3];
'car1' will respawn after 30 seconds for an unlimited number of times:
car1 respawnVehicle [30];

Additional Information

See also: respawn
Multiplayer:The respawned vehicle remains local to the client who was the last driver of the vehicle or the client who was the leader of the last AI driver of the vehicle. If the vehicle has yet to be driven or the AI driver is local to the Server then the respawned vehicle will be local to the Server.
Problems: 

Notes