This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Show activation ranges of all sectors | |
KPLIB_sectors_all apply { | |
private _rangeMarker = format ["%1_range", _x]; | |
createMarkerLocal [_rangeMarker, getMarkerPos _x]; | |
_rangeMarker setMarkerShapeLocal "ELLIPSE"; | |
_rangeMarker setMarkerSizeLocal [KPLIB_param_sectorActRange, KPLIB_param_sectorActRange]; | |
_rangeMarker setMarkerBrushLocal "BORDER"; | |
_rangeMarker | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const createRange = (start, amount) => | |
Array.from(Array(amount), (_, idx) => start + idx); | |
/** | |
* @param {array} array | |
*/ | |
const uniqueArray = array => [...new Set(array)]; | |
/** | |
* @param {array} array |
NewerOlder