respawnVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Armed[ _]Assault(\|.*)]]" to "{{GameCategory|arma1|Scripting Commands}}")
m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ")
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma1 |Game name=
| arma1


|1.00|Game version=
|1.00


|arg= local |Multiplayer Arguments=
|arg= local


|eff= global |Multiplayer Effects=
|eff= global


|gr1 = Multiplayer |GROUP1=
|gr1= Multiplayer
____________________________________________________________________________________________


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


{{Informative | Command has to be executed where vehicle is [[local]] }}|DESCRIPTION=
{{Feature | Informative | Command has to be executed where vehicle is [[local]] }}
____________________________________________________________________________________________


| vehicle '''respawnVehicle''' [delay, count] |SYNTAX=
| vehicle '''respawnVehicle''' [delay, count]


|p1= vehicle: [[Object]] |PARAMETER1=
|p1= vehicle: [[Object]]
|p2= [delay, count]: [[Array]] |PARAMETER2=
|p2= [delay, count]: [[Array]]
|p3= delay: [[Number]] - Delay in seconds between respawns. (-1 to use ''respawnDelay'' from [[description.ext]]) |PARAMETER3=
|p3= delay: [[Number]] - Delay in seconds between respawns. (-1 to use ''respawnDelay'' from [[description.ext]])
|p4= count: [[Number]] (Optional) - How many times to respawn vehicle in total. (0 - unlimited respawns) |PARAMETER4=
|p4= count: [[Number]] (Optional) - How many times to respawn vehicle in total. (0 - unlimited respawns)


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]
____________________________________________________________________________________________
   
   
|x1= <code>car [[respawnVehicle]] [5, 3];</code>
|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.|EXAMPLE1=
'car' will respawn at the predefined marker for the [[side]] after 5 seconds. The unit will respawn 3 times.
 


|x2= <code>car [[respawnVehicle]] [30];</code>
|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.|EXAMPLE2=
'car' will respawn at the predefined marker for the [[side]] after 30 seconds. The unit will respawn an unlimited number of times.
____________________________________________________________________________________________
 
| [[playerRespawnTime]], [[setPlayerRespawnTime]] |SEEALSO=


|seealso= [[playerRespawnTime]], [[setPlayerRespawnTime]]
}}
}}


<h3 style="display:none">Notes</h3>


{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}


<h3 style="display:none">Bottom Section</h3>
{{GameCategory|ofpe|Scripting Commands}}
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|RESPAWNVEHICLE]]
[[Category:Scripting Commands OFP Elite |RESPAWNVEHICLE]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma1|Scripting Commands}}


<!-- CONTINUE Notes -->
<dl class="command_description">
<dl class="command_description">
<dt></dt>
<dd class="notedate">Posted on May 28, 2007 - 16:38 (CEST)</dd>
<dd class="notedate">Posted on May 28, 2007 - 16:38 (CEST)</dd>
<dt class="note">[[User:Sy|Sy]]</dt>
<dt class="note">[[User:Sy|Sy]]</dt>
Line 76: Line 66:
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 13:46, 11 April 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Multiplayer

Syntax

Syntax:
Syntax needed
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:
Return value needed

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