BIS fnc functionMeta: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1 = Diagnostic | |gr1 = Diagnostic | ||
| Returns function's meta data. | | Returns function's meta data. | ||
| functionName call [[BIS_fnc_functionMeta]] | | functionName call [[BIS_fnc_functionMeta]] | ||
|p1= functionName: [[String]] - (Optional, default parent function's name) function name, e.g., "[[BIS_fnc_stalk]]" | |p1= functionName: [[String]] - (Optional, default parent function's name) function name, e.g., "[[BIS_fnc_stalk]]" | ||
| [[Array]] to format [fileLocation, extension, headerType, preInit, postInit, recompile, game, category, name]: | | [[Array]] to format [fileLocation, extension, headerType, preInit, postInit, recompile, game, category, name]: | ||
Line 25: | Line 25: | ||
* game: [[String]] | * game: [[String]] | ||
* category: [[String]] | * category: [[String]] | ||
* name: [[String]] - simple name, without TAG_fnc | * name: [[String]] - simple name, without TAG_fnc | ||
|x1= <code>{{cc|returns ["A3\functions_f\Debug\fn_functionMeta.sqf", ".sqf", 0, [[false]], [[false]], [[false]], "A3", "Debug", "functionMeta"]}} | |x1= <code>{{cc|returns ["A3\functions_f\Debug\fn_functionMeta.sqf", ".sqf", 0, [[false]], [[false]], [[false]], "A3", "Debug", "functionMeta"]}} | ||
"BIS_fnc_functionMeta" [[call]] [[BIS_fnc_functionMeta]];</code> | "BIS_fnc_functionMeta" [[call]] [[BIS_fnc_functionMeta]];</code> | ||
|x2= <code>{{cc|returns ["", "", 0, [[false]], [[false]], [[false]], "", "", ""]}} | |x2= <code>{{cc|returns ["", "", 0, [[false]], [[false]], [[false]], "", "", ""]}} | ||
"unknownFunction" [[call]] [[BIS_fnc_functionMeta]];</code> | "unknownFunction" [[call]] [[BIS_fnc_functionMeta]];</code> | ||
| [[:Category:Function Group: Debug | Debug Functions]], [[BIS_fnc_exportFunctionsToWiki]] | | [[:Category:Function Group: Debug | Debug Functions]], [[BIS_fnc_exportFunctionsToWiki]] | ||
}} | }} | ||
Revision as of 23:02, 17 January 2021
Description
- Description:
- Returns function's meta data.
- Execution:
- call
- Groups:
- Diagnostic
Syntax
- Syntax:
- functionName call BIS_fnc_functionMeta
- Parameters:
- functionName: String - (Optional, default parent function's name) function name, e.g., "BIS_fnc_stalk"
- Return Value:
- Array to format [fileLocation, extension, headerType, preInit, postInit, recompile, game, category, name]:
- fileLocation: String
- extension: String - to format ".extension", e.g ".sqf", ".fsm"
- headerType: Number - one of:
- 0: No Debug - header saves parent script name and current script name into variables
- 1: Save script Map - header additionaly save an array of all parent scripts into variable
- 2: Save and log script map - apart from saving into variable, script map is also logged through debugLog
- preInit: Boolean
- postInit: Boolean
- recompile: Boolean
- game: String
- category: String
- name: String - simple name, without TAG_fnc
Examples
- Example 1:
// returns ["A3\functions_f\Debug\fn_functionMeta.sqf", ".sqf", 0, false, false, false, "A3", "Debug", "functionMeta"] "BIS_fnc_functionMeta" call BIS_fnc_functionMeta;
- Example 2:
// returns ["", "", 0, false, false, false, "", "", ""] "unknownFunction" call BIS_fnc_functionMeta;
Additional Information
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