respawnVehicle: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
||
Line 48: | Line 48: | ||
{{GameCategory|arma2|Scripting Commands}} | {{GameCategory|arma2|Scripting Commands}} | ||
{{GameCategory|arma3|Scripting Commands}} | {{GameCategory|arma3|Scripting Commands}} | ||
{{GameCategory|tkoh|Scripting Commands}} | |||
[[Category:Scripting Commands|RESPAWNVEHICLE]] | [[Category:Scripting Commands|RESPAWNVEHICLE]] | ||
[[Category:Scripting Commands OFP Elite |RESPAWNVEHICLE]] | [[Category:Scripting Commands OFP Elite |RESPAWNVEHICLE]] |
Revision as of 19:42, 10 January 2021
Description
- Description:
- Sets vehicle as respawnable in MP game. 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_XXXSIDEXXX), vehicle will spawn on the marker.
- Groups:
- Multiplayer
Syntax
- Syntax:
- vehicle respawnVehicle [delay, count]
- Parameters:
- vehicle: Object
- [delay, count]: Array
- delay: Number - Delay in seconds between respawns. (-1 to use respawnDelay from description.ext)
- count: Number (Optional) - How many times to respawn vehicle in total. (0 - unlimited respawns)
- Return Value:
- 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.
Additional Information
- See also:
- playerRespawnTimesetPlayerRespawnTime
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
Bottom Section
- Posted on May 28, 2007 - 16:38 (CEST)
- 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.
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Multiplayer
- Scripting Commands: Global Effect
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands
- Scripting Commands OFP Elite