R3vo – User talk
Jump to navigation
Jump to search
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
- /
- 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"
- 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