respawnVehicle: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
Killzone Kid (talk | contribs) (description, format, locality) |
||
Line 1: | Line 1: | ||
{{Command|= Comments | {{Command|= Comments | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 9: | Line 5: | ||
|1.00|= Game version | |1.00|= Game version | ||
|arg= local |= Arguments in MP | |||
|eff= global |= Effects in MP | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | 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. <br><br> | ||
'''NOTE''': Command has to be executed where vehicle is [[local]] |= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | vehicle '''respawnVehicle''' [delay, count] |= Syntax | ||
|p1= | |p1= vehicle: [[Object]] |= Parameter 1 | ||
|p2= [delay | |p2= [delay, count]: [[Array]] |= Parameter 2 | ||
|p3= delay: [[Number]]. | |p3= delay: [[Number]] - Delay in seconds between respawns. (-1 to use '''respawnDelay''' from [[Description.ext]]) |= Parameter 3 | ||
|p4= count: [[Number]]. | |p4= count: [[Number]] (Optional) - How many times to respawn vehicle in total. (0 - unlimited respawns) |= Parameter 4 | ||
| [[Nothing]] |= Return value | | [[Nothing]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= < | |x1= <code>car [[respawnVehicle]] [5, 3];</code> | ||
'car' will respawn at the predefined marker for the [[side]] after 5 seconds. The unit will respawn 3 times.|= Example 1 | 'car' will respawn at the predefined marker for the [[side]] after 5 seconds. The unit will respawn 3 times.|= Example 1 | ||
|x2= < | |x2= <code>car [[respawnVehicle]] [30];</code> | ||
'car' will respawn at the predefined marker for the [[side]] after 30 seconds. The unit will respawn an unlimited number of times.|= Example 2 | 'car' will respawn at the predefined marker for the [[side]] after 30 seconds. The unit will respawn an unlimited number of times.|= Example 2 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[playerRespawnTime]], [[setPlayerRespawnTime]] |= See also | ||
}} | }} | ||
Line 41: | Line 43: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
For this command to work (in | For this command to work (in MP) you need the appropriate markers in the mission. | ||
The markers are... | The markers are... | ||
<pre>respawn_vehicle_west | <pre>respawn_vehicle_west | ||
Line 67: | Line 69: | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command_Group:_Multiplayer|{{uc:{{PAGENAME}}}}]] | [[Category:Command_Group:_Multiplayer|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands|RESPAWNVEHICLE]] | |||
[[Category:Scripting Commands OFP Elite |RESPAWNVEHICLE]] | |||
[[Category:Scripting Commands ArmA|RESPAWNVEHICLE]] |
Revision as of 20:55, 15 March 2015
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.
NOTE: Command has to be executed where vehicle is local - Groups:
- Uncategorised
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
-
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. 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)
Bottom Section
Categories:
- Scripting Commands
- Introduced with Arma version 1.00
- Arma: New Scripting Commands
- Arma: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Global Effect
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters
- Command Group: Multiplayer
- Scripting Commands OFP Elite
- Scripting Commands ArmA