serverConfigTopLevelEntry

From Bohemia Interactive Community
Revision as of 20:53, 7 December 2023 by Lou Montana (talk | contribs) (Page creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Get top-level entry (i.e. entry directly below config root) of the desired name from the server config, making it some kind of secured serverConfigFile command.
Multiplayer:
Only works on dedicated servers.
Groups:
Argo

Syntax

Syntax:
serverConfigTopLevelEntry configEntry
Parameters:
configEntry: String - any server.cfg entry but password and passwordAdmin which are ignored
Return Value:
Config - requested server config entry or configNull on error

Examples

Example 1:
_kickDupes = getNumber serverConfigTopLevelEntry "kickDuplicate" != 0;

Additional Information

See also:
configFile config >> name

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