{"name":"BIS_fnc_priorityQueue_Init","operator":null,"title":"BIS fnc priorityQueue Init","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_priorityQueue_Init","revid":274279,"updated":"2021-06-13T01:19:56Z","groups":["Priority Queue"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.86"}],"since":{"game":"arma3","name":"Arma 3","version":"1.86"},"arma3_since":"1.86","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"/*\n\nInitialize the Priority Queue data structure. The Priority Queue is sorted on inserting. Bigger numbers are set on higher indexes.","syntaxes":[{"syntax":"[] call BIS_fnc_priorityQueue_Init","since":null,"effect":null,"exec":null,"params":[{"name":"_maxSize","type":"Number","types":["Number"],"optional":true,"default":null,"description":"sets the Queue MAX SIZE (otherwise it is set to the constant defined in the .inc file)","since":null,"text":"INT - OPTIONAL, sets the Queue MAX SIZE (otherwise it is set to the constant defined in the .inc file)","source":"docblock"}],"returns":{"type":null,"types":[],"description":null,"text":"_handle: Handle to the Queue (essential for manipulation with the Queue)","source":"docblock"}}],"examples":[{"text":"```sqf\n_priorityQueue_1 = [10] call BIS_fnc_PriorityQueue_Init;\n```","code":["_priorityQueue_1 = [10] call BIS_fnc_PriorityQueue_Init;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Priority Queue","Functions","Introduced with Arma 3 version 1.86"],"docblock":{"author":"Zozo","description":"/*\n\nInitialize the Priority Queue data structure. The Priority Queue is sorted on inserting. Bigger numbers are set on higher indexes.","params":[{"index":null,"name":"_maxSize","types":["Number"],"optional":true,"default":null,"description":"sets the Queue MAX SIZE (otherwise it is set to the constant defined in the .inc file)","text":"INT - OPTIONAL, sets the Queue MAX SIZE (otherwise it is set to the constant defined in the .inc file)"}],"returns":{"types":[],"text":"_handle: Handle to the Queue (essential for manipulation with the Queue)"},"examples":["_priorityQueue_1 = [10] call BIS_fnc_PriorityQueue_Init;"],"syntax":"_handle:INT = [_maxSize] call BIS_fnc_PriorityQueue_Init;","execution":null,"notes":null,"requirements":null,"meta":{},"text":"/*\n    Author: Zozo\n\n    Description:\n    Initialize the Priority Queue data structure.\n    The Priority Queue is sorted on inserting. Bigger numbers are set on higher indexes.\n\n    Parameters:\n    _maxSize:INT - OPTIONAL, sets the Queue MAX SIZE (otherwise it is set to the constant defined in the .inc file)\n\n    Returns:\n    _handle: Handle to the Queue (essential for manipulation with the Queue)\n\n    Syntax:\n    _handle:INT = [_maxSize] call BIS_fnc_PriorityQueue_Init;\n\n    Example:\n    _priorityQueue_1 = [10] call BIS_fnc_PriorityQueue_Init;"},"filled_from_docblock":["description","params","returns","examples"]}