supportInfo: Difference between revisions
Jump to navigation
Jump to search
m (added cmd group: System) |
Killzone Kid (talk | contribs) No edit summary |
||
Line 15: | Line 15: | ||
'name' is the operator or type name (in case operator, type of input operands is included). | 'name' is the operator or type name (in case operator, type of input operands is included). | ||
''mask'' parameter can be an empty string, or one of field. In this case, function returns empty array, if operator is not included in the list. Limited wildcard support is available. Type ''x'' may be replaced with ''*'', meaning all types. For the ''mask'' partial match may be used, like ''abc*'', meaning any operators starting with 'abc' are reported, for example: | ''mask'' parameter can be an empty string, or one of field. In this case, function returns empty array, if operator is not included in the list. Limited wildcard support is available. Type ''x'' may be replaced with ''*'', meaning all types. For the ''mask'' partial match may be used, like ''abc*'', meaning any operators starting with 'abc' are reported, for example: | ||
* <tt>" | * <tt>""</tt> - list all types and commands | ||
* <tt>"t:*"</tt> - list all types | * <tt>"t:*"</tt> - list all types | ||
* <tt>"*:<command>*"</tt> - list all entries for script <command> | * <tt>"*:<command>*"</tt> - list all entries for script <command> | ||
* <tt>"i:<command>"</tt> - (since Arma 3 v1.99.146528) extended information about script <command> in format: <br> <tt>[<nowiki>[</nowiki>commandType, lowerCaseName, camelCaseName, description, example, exampleResult, returnType, leftArgType, rightArgType],...]</tt> | * <tt>"i:<command>"</tt> - (since Arma 3 v1.99.146528) extended information about script <command> in format: <br> <tt>[<nowiki>[</nowiki>commandType, lowerCaseName, camelCaseName, description, example, exampleResult, returnType, leftArgType, rightArgType],...]</tt> |
Revision as of 18:05, 13 July 2020
Description
- Description:
- Creates a list of supported operators and type. Each field of array has the format: "x:name" Where x can be:
'name' is the operator or type name (in case operator, type of input operands is included).
mask parameter can be an empty string, or one of field. In this case, function returns empty array, if operator is not included in the list. Limited wildcard support is available. Type x may be replaced with *, meaning all types. For the mask partial match may be used, like abc*, meaning any operators starting with 'abc' are reported, for example:
- "" - list all types and commands
- "t:*" - list all types
- "*:<command>*" - list all entries for script <command>
- "i:<command>" - (since Arma 3 v1.99.146528) extended information about script <command> in format:
[[commandType, lowerCaseName, camelCaseName, description, example, exampleResult, returnType, leftArgType, rightArgType],...]
- Groups:
- Uncategorised
Syntax
- Syntax:
- supportInfo mask
- Parameters:
- mask: String
- Return Value:
- Array - array with requested info or empty array []
Examples
- Example 1:
supportInfo "b:select*"; //Returns ["b:ARRAY select SCALAR","b:ARRAY select BOOL","b:CONFIG select SCALAR"]
- Example 2:
- Return all available commands:
_commands = supportInfo "";
Additional Information
- See also:
- productVersionrequiredVersion
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
Notes
Bottom Section
- Posted on September 24, 2014 - 19:27 (UTC)
- Killzone Kid
-
To get the list of all supported commands in Arma 3 one can simply:
{diag_log _x} forEach supportInfo "";