BIS fnc updatePlayerArray: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *(\[[a-zA-Z,. ]*\] call ('''|\[\[)?BI(N|S)_fnc_[a-zA-Z]+('''|\]\])?) *\|p1=" to "|s1=$1 |p1=")
m (Text replacement - " (\|[pr][0-9]+ *= *[^-]+) *- *A([a-z])" to " $1 - a$2")
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function
| arma3|1.00|gr1= Respawn| Updates dead player objects to their current respawned objects.|s1=[input] call [[BIS_fnc_updatePlayerArray]]


|p1= input: [[Array]] of [[Object]]s - Array of old player objects| [[Array]] - Array with new player objects|x1= <code>_newPlayerObjects = _oldPlayerObjects [[call]] [[BIS_fnc_updatePlayerArray]];</code>
|game1= arma3
|version1= 1.00


|seealso= [[player]], [[allPlayers]], [[playableUnits]]
|gr1= Respawn
 
|descr= Updates dead player objects to their current respawned objects.
 
|s1= [input] call [[BIS_fnc_updatePlayerArray]]
 
|p1= input: [[Array]] of [[Object]]s - array of old player objects
 
|r1= [[Array]] - array with new player objects
 
|x1= <sqf>private _newPlayerObjects = _oldPlayerObjects call BIS_fnc_updatePlayerArray;</sqf>
 
|seealso= [[player]] [[allPlayers]] [[playableUnits]]
}}
}}
[[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