BIS fnc updatePlayerArray: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>")
m (Text replacement - " |s1=[" to " |s1= [")
Line 8: Line 8:
|descr= Updates dead player objects to their current respawned objects.
|descr= Updates dead player objects to their current respawned objects.


|s1=[input] call [[BIS_fnc_updatePlayerArray]]
|s1= [input] call [[BIS_fnc_updatePlayerArray]]


|p1= input: [[Array]] of [[Object]]s - Array of old player objects
|p1= input: [[Array]] of [[Object]]s - Array of old player objects

Revision as of 00:12, 13 July 2022

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