BIS fnc listPlayers: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| arma2 |Game name=
| arma2 |Game name=
Line 7: Line 6:


|gr1 = Multiplayer |GROUP1=
|gr1 = Multiplayer |GROUP1=
____________________________________________________________________________________________


| Returns a list of ''currently played'' units, alive or dead. |DESCRIPTION=
| Returns a list of ''currently played'' units, alive or dead. |DESCRIPTION=
____________________________________________________________________________________________


| call [[BIS_fnc_listPlayers]] |SYNTAX=
| call [[BIS_fnc_listPlayers]] |SYNTAX=


| [[Array]] of [[Object|Objects]] |RETURNVALUE=
| [[Array]] of [[Object|Objects]] |RETURNVALUE=
____________________________________________________________________________________________


|x1= <code>_allPlayers = [[call]] [[BIS_fnc_listPlayers]];</code> |EXAMPLE1=
|x1= <code>_allPlayers = [[call]] [[BIS_fnc_listPlayers]];</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[isPlayer]], [[playableUnits]] |SEEALSO=
| [[isPlayer]], [[playableUnits]] |SEEALSO=

Revision as of 00:31, 17 January 2021

Hover & click on the images for description

Description

Description:
Returns a list of currently played units, alive or dead.
Execution:
call
Groups:
Multiplayer

Syntax

Syntax:
call BIS_fnc_listPlayers
Return Value:
Array of Objects

Examples

Example 1:
_allPlayers = call BIS_fnc_listPlayers;

Additional Information

See also:
isPlayerplayableUnits

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

Notes

Bottom Section