CfgCommands – Arma 3

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{GVI|arma3|1.51|category}} ==== Description ==== Class contains a user-level list of configurations for scripting commands. Can be defined in Config.cpp or in campaign's...")
 
(→‎Description: see also)
Line 2: Line 2:


==== Description ====
==== Description ====
Class contains a user-level list of configurations for scripting commands. Can be defined in [[Config.cpp]] or in campaign's or mission's [[Description.ext]]. The most local variant is used.
Class contains a user-level list of configurations for scripting commands (currently only [[htmlLoad]]). Can be defined in [[Config.cpp]] or in campaign's or mission's [[Description.ext]]. The most local variant is used.


==== Format ====
==== Format ====

Revision as of 16:34, 12 December 2016

Arma 3 logo black.png1.51

Description

Class contains a user-level list of configurations for scripting commands (currently only htmlLoad). Can be defined in Config.cpp or in campaign's or mission's Description.ext. The most local variant is used.

Format

class CfgCommands
{
       // A list of URIs supported by HTMLLoad
       // Note that in case of clients connected to dedicated server, restrictions defined in its config have priority.
       allowedHTMLLoadURIs = {
               "*.mywebsite.com", // strings support wildcards '*' and '?'
               "*.mywebsite2.com/something/*",
               ...
               "*.mywebsiteN.com",
       };

};