Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Introduced in

Version:1.00

Description

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

Requires the respawn option in the Respawn class of description.ext (see Scripting with description.ext in the VBS3 Scripting Manual) to be set to 3, and a marker to define the respawn area. The old, destroyed vehicle

will stay

stays at its original location, and a new vehicle

will be

is 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:
.
  •  - Delay (in
sec
  • seconds), until the vehicle is respawned
. Default
  • (default: -1) (use respawnDelay
from Description)
  •  from description.ext).
  • count: Number
. Maximum
  •  - Maximum number of respawns
.
  • (
Optional
  • optional, default: 0 - unlimited).
Return Value:Nothing

Examples

Examples:
'car1'
will respawn
 respawns after 5 seconds (and no more than 3 times):
car1 respawnVehicle [5, 3];

'car1'
will respawn
 respawns 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
server, then the respawned vehicle
will be
is local to the
Server
server.
Problems:
 

Notes