supportInfo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Text replacement - "\{\{( *)Informative( *)\|" to "{{$1Feature$2|$2Informative$2|")
Line 19: Line 19:
* <tt>"*:&lt;command&gt;*"</tt> - list all entries for script ''&lt;command&gt;''
* <tt>"*:&lt;command&gt;*"</tt> - list all entries for script ''&lt;command&gt;''
* <tt>"i:&lt;command&gt;"</tt> - extended information about script ''&lt;command&gt;'', [[Array]] of [[Array]] of [[String]]s in format:{{Since|arma3|1.99146528|y}}<br>[type, lowerCaseName, camelCaseName, description, example, result, resultType, leftArgType, rightArgType, syntax ({{Since|arma3|2.01.146751}})]
* <tt>"i:&lt;command&gt;"</tt> - extended information about script ''&lt;command&gt;'', [[Array]] of [[Array]] of [[String]]s in format:{{Since|arma3|1.99146528|y}}<br>[type, lowerCaseName, camelCaseName, description, example, result, resultType, leftArgType, rightArgType, syntax ({{Since|arma3|2.01.146751}})]
{{Informative | <tt>"i:*"</tt> is not a wildcard but returns information about the [[a * b|multiplication operator]] instead.}}
{{Feature | Informative | <tt>"i:*"</tt> is not a wildcard but returns information about the [[a * b|multiplication operator]] instead.}}


| '''supportInfo''' mask
| '''supportInfo''' mask

Revision as of 00:09, 7 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
System

Syntax

Syntax:
Syntax needed
Parameters:
mask: String
Return Value:
Return value needed

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:
See also needed

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
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 "";
Posted on October 19, 2020 - 10:23 (UTC)
7erra
Since you can't use supportInfo "i:*" as a wildcard to get a list of all commands with detailed information, use this code instead: _allCommands = []; supportInfo "" apply { _x splitString ":" params ["_t", "_x"]; if (_t != "t") then { _x = _x splitString " "; _command = switch count _x do { case 1; case 2: { _x # 0 }; case 3: { _x # 1 }; default {nil}; }; _allCommands pushBackUnique _command; }; }; _allCommands sort true; _allCommands = _allCommands apply { supportInfo format["i:%1", _x] }; _allCommands