respawnVehicle
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Armed Assault
- Version:
- 1.00
Description
- Description:
- Set vehicle as respawnable in MP games.
Syntax
- Syntax:
- Vehicle respawnVehicle [delay = -1, count = 0]
- Parameters:
- delay: Number. Default -1 (use respawnDelay from Description.ext)
- count: Number. Default 0 (unlimited respawns)
- Return Value:
- Nothing
Examples
- Example 1:
_car respawnVehicle [5.0, 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.
Additional Information
- Multiplayer:
- Behaviour unknown.
Notes
Notes
Notes
-
For this command to work (in both SP & 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. Sy 16:38, 28 May 2007 (CEST)
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.--Sy 16:49, 10 June 2007 (CEST)

