R3vo – User talk

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Blanked the page)
Tag: Blanking
 
(219 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Function|= Comments


| tkoh |= Game name
|1.00|= Game version
| /*
Karel Moricky, optimised by Killzone_Kid
Description:
Define script parameter
Parameter(s):
0: ARRAY - list of params
1: NUMBER - selected index
2: ANY (Optional) - default param (used when param is missing or of wrong type)
                  - you can overload default value by setting 'BIS_fnc_<functionName>_<index>'
3: ARRAY (Optional) - list of allowed type examples (e.g. ["",[],0,objnull])
4: NUMBER (Optional) - If value is ARRAY, checks if it has required number of elements
Returns:
ANY - either value from list of params, or default value
*/
///////////////////////////////////////////////////////////////////////////////////////////////////////////
#define TYPE_ERROR "Error: type %1 expected %2 on index %3 in %4"
#define SIZE_ERROR "Error: size %1 expected %2 on index %3 in %4"
<br><br>{{Informative|Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]]}} |= Description
|[] call [[BIS_fnc_param]];|= Syntax
|p1= |= Parameter 1
| |= Return value
|x1= <code></code>; |=
| |= See also
}}
[[Category:Function Group: Debug|{{uc:param}}]]
[[Category:Functions|{{uc:param}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:param}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:param}}]]

Latest revision as of 12:48, 23 April 2021