playersNumber

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Operation Flashpoint: Resistance version 1.8

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint: Resistance
Version:
1.8

Description

Description:
Return count of players playing on given side. Works only in multiplayer, in singleplayer always returns 0.

Syntax

Syntax:
Number = playersNumber Side
Return Value:
Number

Examples

Example 1:
_west = playersNumber west;
_east = playersNumber east;
_civ = playersNumber civilian;
hint format [ "West:%1 East:%2, Civ:%3", _west, _east, _civ];

Additional Information

Multiplayer:
Behaviour unknown.

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

playersNumber returns playable AI as well as human players. It does not include non playable AI. [NOTE: This was observed in ArmA 1.05]

Bottom Section

Personal tools
Buy ArmA now!