forceRespawn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(description)
m (Text replacement - "<sqf>([^ ]+) <\/sqf>" to "<sqf>$1</sqf>")
 
(32 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.04


|1.04|= Game version
|arg= local


|arg= local |= Arguments in MP
|eff= global


|eff= global |= Effects in MP
|gr1= Multiplayer
____________________________________________________________________________________________


| Forces unit to respawn. The effect as if the player pressed RESPAWN button in the game pause menu, the unit is killed only there is no "so and so was killed" message and no score adjustment. |= Description
|descr= Forces the unit to respawn. The effect is as if the player pressed the RESPAWN button in the game pause menu; the unit is killed but there is no "X was killed" message and no score adjustment.
____________________________________________________________________________________________


| '''forceRespawn''' unit |= Syntax
|s1= [[forceRespawn]] unit


|p1= unit: [[Object]] |= PARAMETER1
|p1= unit: [[Object]]


| [[Nothing]] |= RETURNVALUE
|r1= [[Nothing]]


|x1= <sqf>forceRespawn player;</sqf>


|x1= <code>[[forceRespawn]] [[player]];
|seealso= [[playerRespawnTime]] [[setPlayerRespawnTime]]
</code>|= EXAMPLE1
____________________________________________________________________________________________
 
| [[playerRespawnTime]], [[setPlayerRespawnTime]]|= SEEALSO
 
| |= MPBEHAVIOUR
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 12:04, 13 May 2022

Hover & click on the images for description

Description

Description:
Forces the unit to respawn. The effect is as if the player pressed the RESPAWN button in the game pause menu; the unit is killed but there is no "X was killed" message and no score adjustment.
Groups:
Multiplayer

Syntax

Syntax:
forceRespawn unit
Parameters:
unit: Object
Return Value:
Nothing

Examples

Example 1:
forceRespawn player;

Additional Information

See also:
playerRespawnTime setPlayerRespawnTime

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