R3vo – User talk

From Bohemia Interactive Community
Jump to navigation Jump to search
m (cleared page)
mNo edit summary
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}}]]

Revision as of 19:01, 23 December 2018

Hover & click on the images for description

Description

Description:
/* 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
  • /
///////////////////////////////////////////////////////////////////////////////////////////////////////////
  1. define TYPE_ERROR "Error: type %1 expected %2 on index %3 in %4"
  2. define SIZE_ERROR "Error: size %1 expected %2 on index %3 in %4"


Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[] call BIS_fnc_param;
Return Value:
Return value needed

Examples

Example 1:
;

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