BIS fnc functionMeta: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "|gr1 = Debug |GROUP1=" to "|gr1 = Diagnostic |GROUP1=") |
Lou Montana (talk | contribs) m (Fix link) |
||
(18 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | | |game1= arma3 | ||
|version1= 1.00 | |||
| | |gr1= Diagnostic | ||
| | |descr= Returns function's meta data. | ||
| | |s1= functionName call [[BIS_fnc_functionMeta]] | ||
| functionName | |p1= functionName: [[String]] - (Optional, default parent function's name) function name, e.g., "[[BIS_fnc_stalk]]" | ||
| | |r1= [[Array]] to format [fileLocation, extension, headerType, preInit, postInit, recompile, game, category, name]: | ||
* fileLocation: [[String]] | * fileLocation: [[String]] | ||
* extension: [[String]] - to format ".extension", e.g ".sqf", ".fsm" | * extension: [[String]] - to format ".extension", e.g ".sqf", ".fsm" | ||
Line 30: | Line 24: | ||
* game: [[String]] | * game: [[String]] | ||
* category: [[String]] | * category: [[String]] | ||
* name: [[String]] - simple name, without TAG_fnc | * name: [[String]] - simple name, without TAG_fnc | ||
|x1= < | |x1= <sqf>// returns ["A3\functions_f\Debug\fn_functionMeta.sqf", ".sqf", 0, false, false, false, "A3", "Debug", "functionMeta"] | ||
"BIS_fnc_functionMeta" | "BIS_fnc_functionMeta" call BIS_fnc_functionMeta;</sqf> | ||
|x2= < | |x2= <sqf>// returns ["", "", 0, false, false, false, "", "", ""] | ||
"unknownFunction" | "unknownFunction" call BIS_fnc_functionMeta;</sqf> | ||
| [[:Category:Function Group: | |seealso= [[:Category:Function Group: Diagnostic | Diagnostic Functions]] [[BIS_fnc_exportFunctionsToWiki]] | ||
}} | }} | ||
Latest revision as of 16:16, 1 November 2022
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