getServerInfo: Difference between revisions
Lou Montana (talk | contribs) (Page creation) |
Lou Montana (talk | contribs) m (Add listen server info) |
||
Line 11: | Line 11: | ||
|descr= Get the current server instance's settings from {{Link|Arma 3: Server Config File|server config}}. | |descr= Get the current server instance's settings from {{Link|Arma 3: Server Config File|server config}}. | ||
{{Feature|informative|Player-hosted (non-dedicated) servers have fewer entries as they do not use a server config file.}} | |||
|s1= [[getServerInfo]] | |s1= [[getServerInfo]] |
Revision as of 18:46, 7 January 2025
Description
- Description:
- Get the current server instance's settings from server config.
- Groups:
- Multiplayer
Syntax
- Syntax:
- getServerInfo
- Return Value:
- HashMap
Examples
- Example 1:
- private _serverInfo = getServerInfo; // example result: /* [ ["persistent", true], ["requiredBuild", 0], ["motd", []], ["isLocked", false], ["estimateTimeLeft", 15], ["disconnectTimeout", 0], ["autoSelectMission", false], ["password", ""], ["maxDesync", 90000], ["randomMissionOrder", false], ["overrideHazeQuality", 0], ["missionHeader", [["fileName", "DbgZeus4P.VR"], ["name", "DbgConsole4PZeus"], ["description", ""], ["fileSize", "7461"], ["steamId", "0"], ["fileCRC", "99816a4"]]], ["hasPasswordAdmin", true], ["forcedDifficulty", "Wolf"], ["verifySignatures", 0], ["maxPlayers", 64], ["maxPing", 8000], ["zeusCompositionScriptLevel", 2], ["maxPacketLoss", 2000], ["hostname", "Test Server"], ["battlEye", false] ] */
- Example 2:
Additional Information
- See also:
- admin allUsers estimatedTimeLeft
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