BIS fnc respawnGroup: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "^ {{Function\|Comments\=" to "{{Function|Comments=")
m (Text replacement - "[[BIS fnc " to "[[BIS_fnc_")
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.00


|1.00|Game version=
|gr1= Respawn
____________________________________________________________________________________________


| ''N/A''<br>{{placeholder}} |DESCRIPTION=
|descr= Camera script used by the "group respawn" template - when the player dies and gets transferred to the new group member.
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_respawnGroup]]; --> |SYNTAX=
|s1= [oldUnit, newUnit] call [[BIS_fnc_respawnGroup]]


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


| |RETURNVALUE=
|p2= newUnit: [[Object]]
____________________________________________________________________________________________


|x1= <code></code> |=
|r1= [[Nothing]]
____________________________________________________________________________________________


| |SEEALSO=
|x1= <sqf>
// in onPlayerRespawn.sqf
params ["_newUnit", "_oldUnit", "_respawn", "_respawnDelay"];
[_oldUnit, _newUnit] spawn BIS_fnc_respawnGroup;
</sqf>


|exec= spawn
|seealso=    [[BIS_fnc_respawnMenuInventory]] [[BIS_fnc_respawnMenuPosition]] [[BIS_fnc_respawnMenuSpectator]] [[BIS_fnc_respawnSeagull]] [[BIS_fnc_respawnSide]] [[BIS_fnc_respawnSpectator]] [[BIS_fnc_respawnWave]]
}}
}}
<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:Function Group: Respawn|{{uc:respawnGroup}}]]
[[Category:Functions|{{uc:respawnGroup}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:respawnGroup}}]]

Latest revision as of 18:04, 13 July 2022

Hover & click on the images for description

Description

Description:
Camera script used by the "group respawn" template - when the player dies and gets transferred to the new group member.
Execution:
spawn
Groups:
Respawn

Syntax

Syntax:
[oldUnit, newUnit] call BIS_fnc_respawnGroup
Parameters:
oldUnit: Object
newUnit: Object
Return Value:
Nothing

Examples

Example 1:
// in onPlayerRespawn.sqf params ["_newUnit", "_oldUnit", "_respawn", "_respawnDelay"]; [_oldUnit, _newUnit] spawn BIS_fnc_respawnGroup;

Additional Information

See also:
BIS_fnc_respawnMenuInventory BIS_fnc_respawnMenuPosition BIS_fnc_respawnMenuSpectator BIS_fnc_respawnSeagull BIS_fnc_respawnSide BIS_fnc_respawnSpectator BIS_fnc_respawnWave

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