BIS fnc functionMeta: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Fix link)
 
(29 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Diagnostic


|1.00|= Game version
|descr= Returns function's meta data.
____________________________________________________________________________________________


| <pre>/*
|s1= functionName call [[BIS_fnc_functionMeta]]


Description:
|p1= functionName: [[String]] - (Optional, default parent function's name) function name, e.g., "[[BIS_fnc_stalk]]"
Returns function's meta data


Parameter(s):
|r1= [[Array]] to format [fileLocation, extension, headerType, preInit, postInit, recompile, game, category, name]:
_this: STRING - function name (if not defined, name of parent function is used)
* 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


Returns:
|x1= <sqf>// returns ["A3\functions_f\Debug\fn_functionMeta.sqf", ".sqf", 0, false, false, false, "A3", "Debug", "functionMeta"]
STRING
"BIS_fnc_functionMeta" call BIS_fnc_functionMeta;</sqf>
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|x2= <sqf>// returns ["", "", 0, false, false, false, "", "", ""]
____________________________________________________________________________________________
"unknownFunction" call BIS_fnc_functionMeta;</sqf>
 
| <!-- [] call [[BIS_fnc_functionMeta]]; --> |= Syntax
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[:Category:Function Group: Diagnostic | Diagnostic Functions]] [[BIS_fnc_exportFunctionsToWiki]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Debug|{{uc:functionMeta}}]]
[[Category:Functions|{{uc:functionMeta}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:functionMeta}}]]

Latest revision as of 16:16, 1 November 2022

Hover & click on the images for description

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

See also:
Diagnostic Functions BIS_fnc_exportFunctionsToWiki

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