BIS fnc updatePlayerArray: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "| arma 3 |Game name=" to "| arma3 |Game name=")
m (Text replacement - " (\|[pr][0-9]+ *= *[^-]+) *- *A([a-z])" to " $1 - a$2")
 
(27 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


|gr1= Respawn |GROUP1=
|descr= Updates dead player objects to their current respawned objects.
____________________________________________________________________________________________


| Updates dead player objects to their current respawned objects. |DESCRIPTION=
|s1= [input] call [[BIS_fnc_updatePlayerArray]]
____________________________________________________________________________________________


| [input] call [[BIS_fnc_updatePlayerArray]] |SYNTAX=
|p1= input: [[Array]] of [[Object]]s - array of old player objects
____________________________________________________________________________________________


|p1= input: [[Array]] of [[Objects]] - Array of old player objects|PARAMETER1=
|r1= [[Array]] - array with new player objects
____________________________________________________________________________________________


| [[Array]] - Array with new player objects|RETURNVALUE=
|x1= <sqf>private _newPlayerObjects = _oldPlayerObjects call BIS_fnc_updatePlayerArray;</sqf>
____________________________________________________________________________________________


|x1= <code>_newPlayerObjects = _oldPlayerObjects [[call]] [[BIS_fnc_updatePlayerArray]];</code> |=
|seealso= [[player]] [[allPlayers]] [[playableUnits]]
____________________________________________________________________________________________
 
| [[player]], [[allPlayers]], [[playableUnits]]|SEEALSO=
}}
}}
<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:Functions|{{uc:updatePlayerArray}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:updatePlayerArray}}]]

Latest revision as of 12:40, 8 November 2023

Hover & click on the images for description

Description

Description:
Updates dead player objects to their current respawned objects.
Execution:
call
Groups:
Respawn

Syntax

Syntax:
[input] call BIS_fnc_updatePlayerArray
Parameters:
input: Array of Objects - array of old player objects
Return Value:
Array - array with new player objects

Examples

Example 1:
private _newPlayerObjects = _oldPlayerObjects call BIS_fnc_updatePlayerArray;

Additional Information

See also:
player allPlayers playableUnits

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