Arma 3 Scripting

Command in System

getSteamFriendsServers

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns servers information of Steam friends currently playing the game.

Syntax

getSteamFriendsServers

Returns: Array of Array of Strings in format [ipAndPort, steamFriendName]

Examples

Example 1

getSteamFriendsServers; // returns e.g [["127.42.33.8:2302", "MyFriend"], ["127.84.66.16:4604", "My Best Friend"]]

Multiplayer

Important

Does not work in multiplayer - returns an empty array.

See also

isMultiplayer · connectToServer