Arma 3 Scripting

respawnVehicle

  • Local argument
  • Global effect
  • Arma 3 v0.50
  • First in Operation Flashpoint: Elite v1.00

Command · Markdown · JSON · original wiki page

Description

Sets vehicle as respawnable in MP game (see Vehicle Respawn). The vehicle will be spawned at the locality and coordinates it was prior to destruction. If respawn type is set to base respawn (type 3) and vehicle respawn marker is provided (respawn_vehicle_SIDEXXX), vehicle will spawn on the marker. The command must be executed where vehicle is local. If the vehicle is in respawn queue, as long as the vehicle is local it should be possible to update params of the respawning vehicle, i.e change delay, disable respawn, etc.

Syntax

vehicle respawnVehicle [respawnDelay, respawnCount, deleteOldWreck, respawnOnServer, respawnFlying, respawnUnit, respawnMode, respawnSide, useRespawnMarkerDir]

Parameters:

Returns: Nothing

Examples

Example 1

car respawnVehicle [5, 3]; // 'car' will respawn at the predefined marker for the side after 5 seconds. The unit will respawn 3 times.

Example 2

car respawnVehicle [30]; // 'car' will respawn at the predefined marker for the side after 30 seconds. The unit will respawn an unlimited number of times.

See also

Vehicle Respawn · getRespawnVehicleInfo · playerRespawnTime · setPlayerRespawnTime

Community notes

Sy

For this command to work (in MP) you need the appropriate markers in the mission. The markers are...

  • "respawn_vehicle_west"
  • "respawn_vehicle_east"
  • "respawn_vehicle_guerilla"
  • "respawn_vehicle_civilian"

Also, by default it will use respawnDelay from the description.ext as mentioned unless you specify

respawnVehicleDelay = x;

Where x is delay in seconds.


In 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.