Arrays
42 functions. Also as Markdown for agents.
- BIS_fnc_addToPairsAdds given value to pair array, stored under unique key.
- BIS_fnc_arrayCompareThis function checks if two arrays are containing the same elements in the same order.
- BIS_fnc_arrayFindDeepSearches an array for a specific value and returns its index.
- BIS_fnc_arrayInsertInserts the elements of one array into another, at a specified index. Neither arrays are touched by reference, a new array is returned.
- BIS_fnc_arrayPopThis function removes the last (rightmost) element of an array and returns it.
- BIS_fnc_arrayPushThis function adds an element to the end of an array and returns the array.
- BIS_fnc_arrayPushStackThis function is similar to the array push function; however, it pushes the contents of an array onto the stack array.
- BIS_fnc_arrayShiftThis function removes the first (leftmost) element of an array and returns it.
- BIS_fnc_arrayShuffleReturn a new array with randomized order of elements from input array.
- BIS_fnc_arrayUnShiftThis function adds an element to the beginning of an array and returns the array. The array is passed by reference so changes inside the function…
- BIS_fnc_colorConfigToRGBAConverts config color format to RGBA array of numbers.
- BIS_fnc_colorRGBAtoHTMLConverts RGBA color format to #AARRGGBB HTML color format.
- BIS_fnc_colorRGBAtoTextureConverts RGB color format to procedural texture, e.g `[0,0,0,1]` becomes `"#(argb,8,8,3)color(0,0,0,1)"`.
- BIS_fnc_colorRGBtoHTMLConverts RGB color format to HTML color format.
- BIS_fnc_conditionalSelectThis returns a sub-array of elements that satisfy a specific condition in the order they have been passed.
- BIS_fnc_consolidateArrayFinds duplicates in the given array of anything and consolidates them into an array of sub-arrays
- BIS_fnc_findAllNestedElementsReturns array of paths to all matching elements in deeply nested array, similar to BIS_fnc_findNestedElement but with all occurences.
- BIS_fnc_findExtremeReturns the minimum or maximum value in an array of numbers.
- BIS_fnc_findInPairsSearches the associative array for the first occurance of the key string and returns its index. Seach is not case-sensitive.
- BIS_fnc_findNestedElementFunction to find item in nested arrays and return a path to the first match.
- BIS_fnc_getFromPairsSearches the associative array for the 1st occurance of the key string and returns the value associated with it. Search is not case sensitiv.
- BIS_fnc_greatestNumReturns the greatest number out of the passed set.
- BIS_fnc_lowestNumReturns the lowest number out of the passed set.
- BIS_fnc_maxDiffArrayFunction to return the maximum difference between all values in an array.
- BIS_fnc_nearestNumReturns the provided set closest number to the target number.
- BIS_fnc_numberDigitsBreak number into array of digits.
- BIS_fnc_paramLoad a script parameter. See Arma 3: Functions Library for detailed description.
- BIS_fnc_paramInSee BIS_fnc_param. Overloading default values is disabled in this variant. It's intended to be used where _this is not used as an input param.
- BIS_fnc_parseNumberSafeConverts expression into a number. Can also convert array of expressions into an array of numbers. If expression does not return a number, 0 is…
- BIS_fnc_randomIndexReturn a random integer representing an index in the passed array.
- BIS_fnc_removeFromPairsRemoves an item from pair array, modifying or not the original array.
- BIS_fnc_removeIndexTakes an array, and returns a new array with the specified index(es) removed. This takes the array passed in the first parameter, and returns an…
- BIS_fnc_removeNestedElementFunction to remove an item in a nested array. Modifies the array by reference.
- BIS_fnc_returnNestedElementFunction to return an item at a path in an array.
- BIS_fnc_selectRandomSelects one of the arguments at random.
- BIS_fnc_selectRandomWeightedSelects a random item from an array, taking into account item weight.
- BIS_fnc_setNestedElementFunction to set an item in a nested array using a path. Modifies the array by reference.
- BIS_fnc_setToPairsWorks similar to the BIS_fnc_addToPairs but it doesn't try to add values. It just overwrites the volue if the key already exists.
- BIS_fnc_sortAlphabeticallyAlphabetically sort an array of strings without modifying the original. See also sort.
- BIS_fnc_sortBySorts an array according to given algorithm. See sort for simple sorts.
- BIS_fnc_sortNumSorts an array of numbers from lowest (left) to highest (right). The passed array is modified by reference. This function uses the quick sort…
- BIS_fnc_subSelectReturns a sub-selection of the passed array.